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

caom2utils: unexpected Interval() use when testing Chunk.position.axis.function #68

Open
dr-rodriguez opened this issue Apr 3, 2018 · 0 comments

Comments

@dr-rodriguez
Copy link

When running the caom2utils validator, I ran into an error I think might not be expected.
The function _validate_spatial_wcs runs:

_check_transform(Interval(float(fn2D.dimension.naxis1/2),
                             float(fn2D.dimension.naxis2/2)))

when attempting to validate the position.axis.function tags. However, this can fail if the naxis1 dimension is larger than the naxis2 dimension since Interval expects the first parameter to be lower than the second one. Since naxis really isn't an interval but rather a note on the size of the array, it shouldn't be testing that one is larger than the other.

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

1 participant