Giter VIP home page Giter VIP logo

Comments (3)

nkeim avatar nkeim commented on July 28, 2024

I originally posted the same thing in #59

The KDTree hash (class TreeFinder) already does this in some form:

        n = len(self.points)
        if n == 0:
            raise ValueError('Frame (aka level) contains zero points')

Maybe that could be moved a little higher up the call stack, and another check could be added at the yield statement at the end of link_iter().

from trackpy.

danielballan avatar danielballan commented on July 28, 2024

As Tom has been arguing, I guess this shouldn't raise, because it is possible to have a frame with no particles. Clearly not in your application, though! :- )

Thanks for pointing it out. I will start by making some tests -- all black frames, a black frame inserted among typical frames, a frame where maxima exist but will all be filtered out during locate, etc. -- and see what breaks where.

from trackpy.

nkeim avatar nkeim commented on July 28, 2024

Cool. Maybe we want a global option, HALT_ON_EMPTY_FRAME? Or maybe we could be raising warnings only. Or the global option could have 3 values: halt, warn, and ignore.

nathan

On Feb 6, 2014, at 2:22 PM, Dan Allan [email protected] wrote:

As Tom has been arguing, I guess this shouldn't raise, because it is possible to have a frame no particles. Clearly not in your application, though! :- )

Thanks for pointing it out. I will start by making some tests -- all black frames, a black frame inserted among typical frames, a frame where maxima exist but will all be filtered out during locate, etc. -- and see what breaks where.


Reply to this email directly or view it on GitHub.

from trackpy.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.