Comments (10)
Thanks for investigating. I will leave the README as it is, recommending numba 0.11 with numpy 1.7.1, until numba rights itself.
from trackpy.
I see now how to do the "major rewrite" of _refine_numba()
: pass in a big results array (along with its length) to be changed in-place; split make all of the little length-2 vectors into _x and _y components.
It might be less work to do it in Cython. But that's only if Cython makes it easy to overload the function to accept images with a variety of dtypes
.
I'm concerned about the "out-of-the-box" experience now for someone who downloads the latest Anaconda and then trackpy
. Is there an easy conditional way to just keep numba
's mitts off of _refine_numba()
altogether?
from trackpy.
From what I've read, conda doesn't make cython as painless as it does numba. (For example, if a Windows machine doesn't have the right C compiler, conda can't help it.) But am I no expert on that -- cython might be a viable choice.
The slow import time is bad. Maybe numba is compiling everything on import now. I can't find detailed release notes. Have you come across any? I pinged ContinuumIO's twitter account about it too. It might not be in the open.
See #83 for one approach that could serve in the meantime. Not sure if it passes local tests yet -- they are running really slow -- but import trackpy
is back to normal speed.
from trackpy.
Take a look at this: https://twitter.com/teoliphant/status/433993752625942530
This prompts the question, "Why is this the new default?!"
from trackpy.
Better question: why is this being announced via twitter?
also, get off my lawn.
from trackpy.
Get off my lawn, indeed! :)
https://discussions.apple.com/thread/5472161?start=0&tstart=0
On Feb 13, 2014, at 3:07 PM, Thomas A Caswell [email protected] wrote:
Better question: why is this being announced via twitter?
also, get off my lawn.
—
Reply to this email directly or view it on GitHub.
from trackpy.
Hmm...
https://twitter.com/teoliphant/status/434074669616869376
from trackpy.
Travis himself invites us to post the broken code for priority attention: https://twitter.com/teoliphant/status/434076107738865664
@nkeim seems to understand the problem well enough, but I guess it doesn't hurt to get expert advice as it's offered. Hard to reduce _refine_numba to a self-contained concise question...
from trackpy.
@nkeim probably could have said it better, but I wanted to jump at Travis's offer while it was fresh in mind. Feel free to chime in. https://groups.google.com/a/continuum.io/forum/#!topic/numba-users/-lNug_ZI2xs
from trackpy.
Thanks! I added a link to a stripped-down, standalone version of feature.py that still causes the problem --- one of my failed experiments.
On Feb 13, 2014, at 4:46 PM, Dan Allan [email protected] wrote:
@nkeim probably could have said it better, but I wanted to jump at Travis's offer while it was fresh in mind. Feel free to chime in. https://groups.google.com/a/continuum.io/forum/#!topic/numba-users/-lNug_ZI2xs
—
Reply to this email directly or view it on GitHub.
from trackpy.
Related Issues (20)
- Is the particle size squared a suitable measure of area?
- The number of trajectories is different from the number of unique particle IDs HOT 2
- Detector based on the sqrt Airy disk function to localize iSCAT PSFs
- Pandas ValueError when calling subtract_drift HOT 1
- How to find number of pixels in blob
- object has no attribute 'long_name' (when inspecting 'frame') HOT 2
- tp.emsd TypeError: mean() got an unexpected keyword argument 'level' HOT 7
- 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
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.