-
Notifications
You must be signed in to change notification settings - Fork 4
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
Neuroglancer metadata datatype #27
Comments
Please provide a reproducible example ( a small sample file, and a command line), the version of pytools and python being used. Along with the actual output, and the desired output. Version 1.0 produces float numeric types for the value of the JSON fields. |
ATM the value is a float. eg currently it's:
and you'd like: |
Yes, precisely. Those min/max/floor/limit parameters are used as boundaries on pixel values, and our neuroglancer pyramids all have integer pixels. I've asked Bryan, he said the devices that they had didn't emit floating point MRCs, ergo, no floating point pixels in the neuroglancer chunks, either. In tomojs I had an explicit check for that, not sure about the current workflows. Round min/floor down, max/limit up. The fact that integers were converted to strings for storage was a quirk of tomojs that is relatively easy to replicate. If absolutely necessary, I can accommodate the datatype variance. |
Looks like the tomojs-generated Neuroglancer metadata strings contain their values as string formatted integers (as opposed to numbers), like this:
{"neuroglancerPrecomputedFloor":"31403", "neuroglancerPrecomputedLimit":"34295", "neuroglancerPrecomputedMax":"33467", "neuroglancerPrecomputedMin":"32252"}
May we have compatible metadata, please? No fractions, and stored as strings. Thank you.
The text was updated successfully, but these errors were encountered: