Skip to content

Commit

Permalink
Support the new day_obs butler dimension in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
timj committed Feb 16, 2024
1 parent 83996f0 commit 2ef19eb
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion tests/test_calibrate.py
Expand Up @@ -59,9 +59,14 @@ def _makeTestRepo(cls, root):
"physical_filter",
{"instrument": "notACam", "name": "r", "band": "r"},
)
if "day_obs" in butler.dimensions:
butler.registry.insertDimensionData(
"day_obs",
{"id": 20240201, "instrument": "notACam"},
)
butler.registry.insertDimensionData(
"visit",
{"instrument": "notACam", "id": 101, "name": "101", "physical_filter": "r"},
{"instrument": "notACam", "id": 101, "name": "101", "physical_filter": "r", "day_obs": 20240201},
)
butler.registry.insertDimensionData("detector",
{"instrument": "notACam", "id": 42, "full_name": "42"})
Expand Down

0 comments on commit 2ef19eb

Please sign in to comment.