-
Notifications
You must be signed in to change notification settings - Fork 30
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
Update ndarray schema to 1.1 to fix issue 345 #350
Update ndarray schema to 1.1 to fix issue 345 #350
Conversation
Can you separate the change adding the new Also, can you post the diff between |
I may be missing something but I am unable to (locally) get the asdf-development tests to pass without updating the legacy converters to support the new schemas. Specifically:
The failing test is
If I then add a However, the NDArrayType class does not appear to support a similar fix. If I add a supported_versions class attribute I get an even less helpful error at time of class definition: TypeError: __class__ set to <class 'asdf.tags.core.ndarray.NDArrayType'> defining 'NDArrayType' as <class 'asdf.tags.core.ndarray.NDArrayType'> To move this PR forward, am I correct that the asdf-development tests will fail until the converters are updated or am I missing something? Also, thanks for the feedback on the history changes, I'll make them once the content of the PR is sorted out. Aside from the examples in the description the diff for ndarray-1.0.0 and ndarray-1.1.0 is as follows: > oneOf:
> - required: [source]
> - required: [data]
> |
This should be paired with an |
b7754ef
to
f15f478
Compare
73d7902
to
0491853
Compare
Here is a partial diff between ndarray-1.0.0 and ndarray-1.1.0 (most differences are updating references/tags from 1.0 to 1.1): 374a386,389
> oneOf:
> - required: [source]
> - required: [data]
> |
There is 1 remaining reference to ndarray-1.0 in the asdf-schema-1.0.0 metaschema:
This references a portion of the ndarray-1.0.0 schema that is not affected by #345. The CI failure of asdf-development tests is unavoidable as asdf does not yet have support for the new schemas (support will be added in this PR: asdf-format/asdf#1250). I think it makes sense to merge this prior to the asdf PR so that the CI for that PR can hopefully have fewer errors (it will still fail some tests unless asdf-format/asdf#1247 is merged to allow xfailing certain new tags that are not supported in asdf). |
Fixes #345
This PR should be merged after #349 so the time schema errors fixed in that PR do not result in test failures once this PR fixes #345.