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.

@JeremyMcCormick JeremyMcCormick requested a review from gpdf August 26, 2024 21:36
@timj timj force-pushed the tickets/DM-41922 branch from 18a3870 to 460fdae Compare August 26, 2024 21:37
@timj timj requested a review from JeremyMcCormick August 26, 2024 21:37
@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.

@JeremyMcCormick JeremyMcCormick added the schema Update a schema or add a new one label Dec 6, 2024
Defaults string lengths based on dax_obscore.

Removed bad unit from o_stat_errror
@timj timj force-pushed the tickets/DM-41922 branch from 8ee0eb1 to 5eac48e Compare January 9, 2025 22:27
@@ -305,6 +365,7 @@ tables:
tap:std: 1
tap:principal: 1
ivoa:unit:
datatype: double
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is the data type for a date?

@timj
Copy link
Member Author

timj commented Jan 9, 2025

@JeremyMcCormick I've rebased and I'm failing to understand the deepdiff action that is failing.

@@ -17,6 +17,9 @@ tables:
tap:std: 1
tap:principal: 1
ivoa:unit:
datatype: string
votable:arraysize: "*"
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is the idea that because of some other code changes since I made this PR I can delete all the votable:arraysize lines?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
schema Update a schema or add a new one
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants