Adjustments for new productID inventory keyword#549
Conversation
|
We should also regenerate the sample data as part of this PR so the productID gets included in the docstring. |
It seems that not all the ASDF files have been regenerated to add it yet, so no point. |
|
Poking about with search results I noticed that Looks like we might need to do some post-processing here to make this not-terrible. |
|
Also we should probably add a test which fails if the return columns change so we know to update them. We shouldn't keep un-mapped ones around for long as it's a breaking change when we eventually map them. |
This is kind of a hack but I'm not sure how else to do it because display_keys isn't exposed anywhere and if you set it in the class definition it just breaks.
Because it hasn't made its way into sample data inventory yet so it won't work
| Files are stored in ...VISP_BKPLX | ||
| <BLANKLINE> | ||
| This calibration has Dataset ID BKPLX. | ||
| The unique identifier for the input observe frames (Product ID) is (no ProductID). |
There was a problem hiding this comment.
is "(no ProductID)" a placeholder?
There was a problem hiding this comment.
Any metadata ASDFs without a product Id in them will show this
| consists of 9 frames. | ||
| Files are stored in ... | ||
|
|
||
| This calibration has Dataset ID AJQWW and the original frames have Product ID ... |
There was a problem hiding this comment.
Ellipsis in doc tests ignore a section of the output for matching reasons. So in this case we ignore the path so the test isn't hard coded to a specific directory
SolarDrew
left a comment
There was a problem hiding this comment.
Couple of suggestions but otherwise I think this is good to go.
| Dataset Status | ||
| ============== | ||
|
|
||
| The status of a Dataset indicates if it's the latest calibration for that Product (``ACTIVE``), if it's an older calibration but still available (``DEPRECATED``) or no longer available (``REMOVED``). |
There was a problem hiding this comment.
May not be for this PR but I wonder if there's a way to inject this status into the dataset repr so that it's immediately obvious to users if they're using an old dataset.
There was a problem hiding this comment.
yeah we need to do something around that.
Doing that would involve refreshing the dataset inventory record in the meta dict with the latest from the DC like we now do in .download().
Co-authored-by: Drew Leonard <[email protected]>
Closes #547