Comments (3)
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.
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.
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)
- Working on a napari-trackpy plugin HOT 1
- TST: Weird dtype switching on Windows HOT 2
- link_df_iter giving TypeError when using pd.concat?
- level keyword argument was removed in pandas>2.0 HOT 1
- Release v0.6.2 HOT 5
- Tutorial shows problem using latest pandas HOT 2
- Linking using multiple HDF5 files. HOT 1
- Use pims.as_grey instead of image[:, :, 1] in walkthrough tutorial.
- Old Python version in installation instructions
- TST: Need to replace a GitHub action
- tp.batch does not perform batch correctly (all frames output as 0) HOT 3
- Error in trackpy.emsd() function: TypeError: mean() got an unexpected keyword argument 'level' HOT 5
- `plot_traj3d` throws error
- Locate only within specific ROI HOT 2
- [Question] methods for initial estimation of `minmass` HOT 1
- [Enhancement] Allowing possibility to convert raw image to `uint16`
- [Question] How to add optional arguments in after_locate function in tp.batch HOT 1
- Release v0.6.3
- Trackpy incompatible with Numpy 2.0 HOT 3
- track
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from trackpy.