-
Notifications
You must be signed in to change notification settings - Fork 7
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
DM-41922: Add datatypes and lengths to ObsCore #248
base: main
Are you sure you want to change the base?
Conversation
@JeremyMcCormick I'm happy for you to take over this branch now. This is sufficient for my testing in dax_obscore. |
11ffd16
to
c96bb5a
Compare
c96bb5a
to
1ac254a
Compare
@timj Jeremy and I were looking at this just now and trying to understand your "failed validation" comment. We don't see it failing automated validation. We agree that the changes you made were appropriate, but we just want to understand what you meant, first. |
@@ -538,7 +656,8 @@ tables: | |||
votable:utype: Char.ObservableAxis.Accuracy.StatError.Refval.value | |||
tap:std: 1 | |||
tap:principal: 0 | |||
ivoa:unit: same units as the value of the o_unit attribute | |||
ivoa:unit: |
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.
@stvoutsin / @JeremyMcCormick it's this change that fixes the validation error. "same units as..." is not a valid unit.
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.
Sorry. I meant @gpdf there....
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.
I understand exactly why this would fail a validation, but is this theoretical, or is it right now failing validation in some place we can't see?
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.
It wasn't theoretical in the sense that I couldn't use this yaml file in dax_obscore without everything breaking.
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.
(Granted I can't remember the details now because it was a while back)
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.
OK, that explains why we can't see an actual failure in logs.
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.
Do you attempt to use this actual file, not a copy of it, programmatically, from dax_obscore?
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.
At the moment there is a copy in dax_obscore. Once this is merged and combined with the recent change to use python package resources I will be able to delete the local copy and use this one.
1ac254a
to
4bbadee
Compare
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.
Three issues:
obs_creation_date
was given the wrong datatype (it's a civil time, not an MJD)- based on extensive work by @JeremyMcCormick , explicitly declaring the
votable:arraysize
should rarely if ever be needed - @JeremyMcCormick has made Felis'
timestamp
datatype work correctly, so it should be used for time stamps, not least because a future update to Felis will then automatically generate the currently missingxtype='timestamp'
specifier in TAP_SCHEMA.
I will make all these changes and retrofit them to the ObsCore-YAML-creation-from-the-standard script.
@@ -305,6 +365,7 @@ tables: | |||
tap:std: 1 | |||
tap:principal: 1 | |||
ivoa:unit: | |||
datatype: double |
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.
This is an incorrect data type for this column.
Defaults string lengths based on dax_obscore. Removed bad unit from o_stat_errror
4bbadee
to
8ee0eb1
Compare
Defaults string lengths based on dax_obscore.
Fails validation of o_stat_error because the unit is none standard.