-
Notifications
You must be signed in to change notification settings - Fork 1
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
Clean up coordinate transforms #95
Conversation
IMO this is not the most elegant solution to that error message. If we go by the structure of the data defined in the spec, there are 4 types of transforms, not 2. I think a better solution to that error message is to write our own error message, instead of deviating from the types defined in the spec (even though they are very clunky types) |
Hmm, I dunno - https://ngff.openmicroscopy.org/0.4/index.html#trafo-md doesn't seem to explicitly define 4 data structures, just says that on the data structures either path or "name of vector" can be defined. |
0068c1e
to
289b294
Compare
Okay, I unded my over-zealous refactoring, and this is a minimal change needed to make the error message nicer now |
In python we can't really model a type with an optional (i.e. potentially missing) attribute, only an attribute might be |
fwiw I tried using just 2 types in |
That all makes sense - thanks for taking the time to explain! |
This improves validation messages and code structure by:
Fixes #94 - the error message if the transform is (incorrectly) translation then scale is now