-
Notifications
You must be signed in to change notification settings - Fork 133
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
van Hove plotting problem #394
Comments
As a follow-on, I am finding the code really hard to follow (well, pandas is quite complicated). For example. code like this does not seem to be explained by the histogram documentation:
So, what exactly does the [1] at the end mean? Is this an axis? Is the [1] old code that needs replacing with axis=1? Thanks again. |
This is the error code by the way:
|
Those exceptions look like some invalid data ( |
There are NaN vales in the data but I think these are processed out. Would it be possible to see an example of some working code, or should my code above work? If I add those lines into the Walkthrough, should they work? |
This needs some documentation. |
Hi all I signed up to this website just a while ago feeling pretty desperate about exactly the same problem Resonanz posted. Has any of you gotten around this problem yet? PS: I'm totally new to coding (started learning Python from scratch just over a month ago). |
I have just started a new microrheology project so I'm keen (again) to get this working. |
My seniors advised me to uninstall Anaconda3-5.x, and install Anaconda3-4.0.0. Did it just this morning and now the van Hove command worked. |
@pipoUrdaneta Good that it works for you! I wonder what your
@danielballan Would be the one to provide a working example as he wrote the function. For sure we need a test to at least run the |
If you have code that now works, could you please post a working example that others can try? Thanks. |
@caspervdw Thanks!
But for pandas and numpy in my current Anaconda3-4.0.0 installation:
gives and
gives The Anaconda version previously used was 5.2.0, with Python 3.6. |
@Resonanz will do, although for the above I did just follow the van Hove command in TrackPy's documentation,
(and not forgetting to specify the lagtime argument after pos) |
Fair. See #516. |
I am trying to get the van Hove function to work.
In the walkthrough I have added a little code to call the van Hove function as follows:
I get this error for a span of lagtimes:
ValueError: ('range parameter must be finite.', 'occurred at index 0.0')
which is coming from this line in the van Hove function:
vh = disp.apply(lambda x: Series(np.histogram(x, bins=global_bins, density=True)[0]))
Any help? Thanks !
The text was updated successfully, but these errors were encountered: