Skip to content
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

errors when running with do3d=1 and zpar=fromMSL #6

Closed
dcherian opened this issue Jun 2, 2014 · 2 comments
Closed

errors when running with do3d=1 and zpar=fromMSL #6

dcherian opened this issue Jun 2, 2014 · 2 comments

Comments

@dcherian
Copy link
Contributor

dcherian commented Jun 2, 2014

When trying to run with do3d=1 and zpar='fromMSL', python complains because find is not defined. I'm not sure what find should contain.

Line 329 of tracpy_class.py:

ka[i] = find(ind)[-1] # find value that is just shallower than starting vertical position

I had to fix some issues in lines 275-296 too because the sizes weren't correct for uf, vf, etc. Will send in a pull request.

@dcherian dcherian changed the title errors running with do3d=1 and zpar=fromMSL errors when running with do3d=1 and zpar=fromMSL Jun 2, 2014
@kthyng
Copy link
Owner

kthyng commented Jun 2, 2014

The tracking algorithm itself is fully capable of doing 3d tracking, but I haven't used it that way for quite awhile, so I suspect you'll find a lot of issues using it at this point. I hope to do some better code development on the 3D side of things in the next half a year, though. If you're interested in working on the kinks and issues, that would be great.

find is a Python function that returns the index of the condition inside the parentheses.

@dcherian
Copy link
Contributor Author

dcherian commented Jun 2, 2014

I see.

I fixed the find issue by using np.argmax instead but it now blows up in tracmass.step(). I'll see what I can find and send in a pull request later.

@dcherian dcherian closed this as completed Jun 2, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants