-
Notifications
You must be signed in to change notification settings - Fork 60
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
asdf validation error #297
Conversation
@nden, I think the problem is that by default the |
|
||
class TestFailType(TransformType): | ||
name = "transform/test_fail" | ||
types = [TestFail] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Try adding standard = 'jwst_pipeline'
here
@drdavella I was trying to make a simple example showing the problem and forgot to change the standard. However, the example here is supposed to run/work within asdf and changing the standard in the schema definition to |
@nden, sorry I guess I skimmed the description of your issue a little too quickly. Is the error you get still the same? The error you pasted above seems to be related to the difference in values for The current version of the code fails because the tag is under If I change the tag, then I get a different failure which is maybe what is actually wrong. |
@nden I think I might actually know what the problem is. The This has been fixed on #294 and can be merged. That PR is based on #284 though, and that will need to be merged as well. I'm not sure if you want to review them quickly or whether I should just go ahead and pull them in. |
@drdavella You are right. Bumping the |
@nden if it's easier we can just do a quick patch for the version now. I would like to get those PRs merged at some point though. |
The purpose of this PR is to illustrate a failing example. The schema is included here although for the example to work it should be placed under
asdf-standard/schema/.../transform
. The error I get isThe example to trigger the error:
If I don't specify
version='1.1.0'
in TestFailType, it defaults to version1.0.0
and the error isThis only happens when a specific transform is defined in the schema, like
shift-1.1.0
here. If instead the schema requirestransform-1.1.0
, it works. Since all schemas we have in JWST sofar need a generaltransform
and not a specific one this error just surfaced now.This is a simplified version of the real use case. @drdavella Do you see anything wrong with the example? If not, is this sufficient information to debug it?