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

DM-41922: Add datatypes and lengths to ObsCore #248

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

timj
Copy link
Member

@timj timj commented Aug 26, 2024

Defaults string lengths based on dax_obscore.

Fails validation of o_stat_error because the unit is none standard.

@timj
Copy link
Member Author

timj commented Aug 26, 2024

@JeremyMcCormick I'm happy for you to take over this branch now. This is sufficient for my testing in dax_obscore.

@gpdf
Copy link
Collaborator

gpdf commented Oct 18, 2024

@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:
Copy link
Member Author

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.

Copy link
Member Author

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....

Copy link
Collaborator

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?

Copy link
Member Author

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.

Copy link
Member Author

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)

Copy link
Collaborator

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.

Copy link
Collaborator

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?

Copy link
Member Author

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.

Copy link
Collaborator

@gpdf gpdf left a 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 missing xtype='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
Copy link
Collaborator

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
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

Successfully merging this pull request may close these issues.

2 participants