-
Notifications
You must be signed in to change notification settings - Fork 12
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
JSON metadata requests fail on RAMON Neurons that have malformed segments
fields
#181
Comments
I can confirm this exists. When I added a test for big ints in the JSON tests it didn't fail, though, so I'm not sure what's going on. Looking now. |
@WillGray check this out:
The offending code is on line 756 of ocpca/annotation.py:
Python can't figure out how to interpret the string Do we think this is an OCP bad or a cajal bad, or something else?
|
So it looks to me like this is an error with any RAMON object that has a @alexbaden is there an easy way to just switch these over to arrays of int-like strings either programmatically or manually? This looks like a cajal issue where matlab treats scalars as 1D matrices, I think. @WillGray any thoughts on that? |
kasthuri2015_ramon_v1
segments
fields
Seems reasonable to me. Maybe the two of us and @WillGray should do a
|
Interesting. Do you guys have cajal or ndio or restful snippets? |
the easiest way to get this is via RESTful call: http://openconnecto.me/ocp/ca/kasthuri2015_ramon_v1/neurons/10016/json/ But you could also do the same thing, in ndio, for instance: import ndio.remote.OCP as OCP
oo = OCP()
oo.get_ramon('kasthuri2015_ramon_v1', 'neurons', 16, resolution=3) # works
oo.get_ramon('kasthuri2015_ramon_v1', 'neurons', 10016, resolution=3) # fails |
@alexbaden @j6k4m8 @WillGray this is great progress, and the top priority with regard to getting the ocp paper results completed. so, for example, a hangout tonight or tomorrow would be ideal 👍 |
Somehow the segments have been written in as a bracketed string of numbers, instead of a string of numbers. @WillGray do you have the code to reproduce this dataset? [edit] @WillGray better yet, do you have a RAMONified dataset that exhibits the same behavior (has defined segments in kvpairs) but works? |
@alexbaden - per the other thread, check out the same token/channel pair and see if it is well behaved? |
Looks good to me. Really weird.... |
I'll look next week. That error message drives me bonkers. On Thu, Jan 21, 2016 at 1:02 PM Jordan Matelsky notifications@github.com
|
To be clear, though - this works for the hdf5 interface! http://openconnecto.me/ocp/ca/kasthuri2015_ramon_v1/neurons/10016/ |
interesting....ok let's proceed with the hdf5 interface forthwith and anon! On Fri, Jan 22, 2016 at 4:18 PM, William Gray notifications@github.com
the glass is all full: half water, half air. |
i switched ndio to use the hdf5 interface, so this is no longer blocking. Closing :) |
We want the json interface to work, right? Reopening (unless people object) - no longer critical path. |
Yeah, keep it open for now.
|
Guys - this is still open - can we figure out how to fix? doesn't work: does work: Seems that all neurons are "irretrievable" via json at this point. Perhaps we are writing them poorly? Happy to do differently but don't understand error. Thanks! |
#stoppingscience! |
It's obviously an 'Unknown exception in annotation' :-) Looking now... |
Fixed and pushed to master (a7e0621). There was a typo in the jsonann class. Also fixed temporarily on dsp061 -- will talk with Kunal today about getting dsp061 to run the latest commit (it's a few commits behind). The unit test coverage for ramon is poor. But, it's not clear whether we should update the current test coverage or rewrite test coverage for the microns branch. Will add to infrastructure agenda. |
Though this ID exists, it throws an "Unknown error in annotation."
This json lookup fails for id=10016, though the same url with id=16 works.
Other IDs in the same range (>4 digits) also fail with the same error.
http://openconnecto.me/ocp/ca/kasthuri2015_ramon_v1/neurons/10017/json/
This is not the same error as a not-found, which simply 404s gracefully.
The text was updated successfully, but these errors were encountered: