-
Notifications
You must be signed in to change notification settings - Fork 12
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-42636: add group and day_obs first-class dimensions #953
Commits on Feb 29, 2024
-
Fix astropy warning with timespan calculation
The offset was meant to be "offset * (n + 1)" not an offset of n minutes plus one day.
Configuration menu - View commit details
-
Copy full SHA for 8463586 - Browse repository at this point
Copy the full SHA 8463586View commit details -
Configuration menu - View commit details
-
Copy full SHA for 9436a4f - Browse repository at this point
Copy the full SHA 9436a4fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 5577301 - Browse repository at this point
Copy the full SHA 5577301View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3d50705 - Browse repository at this point
Copy the full SHA 3d50705View commit details -
Update HSC test data to new universe version, add day_obs.
This file was so old it predated the addition of day_obs to the exposure and visit dimensions, and that was back before we even had a dimension universe version. While it's nice to have the YAML import code migrate simple things, it has no idea where an instrument is and hence can't handle this one. Procedure was: - make an empty SQLite repo - import the old file - query for visit dimensions (there are no exposures in this file) - make new records with day_obs set, by looking at visit.timespan.begin and doing some timezone stuff (HSC is in Hawaii, which I just hard-coded here) - re-insert the new visit recods with replace=True - export all of the dimension elements in butler.dimensions.elements with element.has_own_table=True.
Configuration menu - View commit details
-
Copy full SHA for 5087188 - Browse repository at this point
Copy the full SHA 5087188View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5cdd6f3 - Browse repository at this point
Copy the full SHA 5cdd6f3View commit details -
Configuration menu - View commit details
-
Copy full SHA for 6b99675 - Browse repository at this point
Copy the full SHA 6b99675View commit details -
This updates the YAML file to have day_obs as a dimension rather than rely on the import-time migration, which warns.
Configuration menu - View commit details
-
Copy full SHA for 350499c - Browse repository at this point
Copy the full SHA 350499cView commit details -
Ensure that for import we insert records in the correct order
This ensures we do not try to load exposure before we've loaded day_obs.
Configuration menu - View commit details
-
Copy full SHA for c65644e - Browse repository at this point
Copy the full SHA c65644eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 153f101 - Browse repository at this point
Copy the full SHA 153f101View commit details -
Ensure that derived serialized dimension record name has no underscores
We want SpecificSerializedDimensionRecordDayObs and not SpecificSerializedDimensionRecordDay_obs.
Configuration menu - View commit details
-
Copy full SHA for 4d1b36b - Browse repository at this point
Copy the full SHA 4d1b36bView commit details -
Configuration menu - View commit details
-
Copy full SHA for e7a6c74 - Browse repository at this point
Copy the full SHA e7a6c74View commit details -
Configuration menu - View commit details
-
Copy full SHA for 140b60c - Browse repository at this point
Copy the full SHA 140b60cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 4806c87 - Browse repository at this point
Copy the full SHA 4806c87View commit details -
Configuration menu - View commit details
-
Copy full SHA for 91931b5 - Browse repository at this point
Copy the full SHA 91931b5View commit details -
Configuration menu - View commit details
-
Copy full SHA for e5ca19c - Browse repository at this point
Copy the full SHA e5ca19cView commit details -
Add a test reading a version 0 export YAML file
This required that code is added to derive day_obs from the datetime_begin field (something which should have been added long ago when universe version 1 came out).
Configuration menu - View commit details
-
Copy full SHA for c60899f - Browse repository at this point
Copy the full SHA c60899fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 7d91994 - Browse repository at this point
Copy the full SHA 7d91994View commit details -
Configuration menu - View commit details
-
Copy full SHA for 300b7fe - Browse repository at this point
Copy the full SHA 300b7feView commit details -
Configuration menu - View commit details
-
Copy full SHA for c099812 - Browse repository at this point
Copy the full SHA c099812View commit details -
Configuration menu - View commit details
-
Copy full SHA for a5baa5a - Browse repository at this point
Copy the full SHA a5baa5aView commit details -
Remove day_obs_offset from instrument record
Instead always try to get the offset from the attached instrument class's metadata translator.
Configuration menu - View commit details
-
Copy full SHA for 58e02cb - Browse repository at this point
Copy the full SHA 58e02cbView commit details