From 6cc6eeb467573b2820faac0c96ca1b43b019122e Mon Sep 17 00:00:00 2001 From: Hsin-Fang Chiang Date: Thu, 19 Jan 2023 10:06:36 -0800 Subject: [PATCH 1/2] Add collection before setting the chain --- bin.src/make_remote_butler.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/bin.src/make_remote_butler.py b/bin.src/make_remote_butler.py index b16bb506..ab524b42 100755 --- a/bin.src/make_remote_butler.py +++ b/bin.src/make_remote_butler.py @@ -117,6 +117,11 @@ def _hsc_rc2(butler): "HSC/calib/DM-28636", ], ) + + butler.registry.registerCollection( + instrument.makeUnboundedCalibrationRunName(), + type=CollectionType.CHAINED + ) butler.registry.setCollectionChain( instrument.makeUnboundedCalibrationRunName(), [ From 30325cef7819ce7f63b10c7b3d6f5142c6f81000 Mon Sep 17 00:00:00 2001 From: Hsin-Fang Chiang Date: Mon, 23 Jan 2023 20:51:32 -0800 Subject: [PATCH 2/2] Use the new exposure id in setting the path --- python/tester/upload_hsc_rc2.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/tester/upload_hsc_rc2.py b/python/tester/upload_hsc_rc2.py index f5e48589..dab02e90 100644 --- a/python/tester/upload_hsc_rc2.py +++ b/python/tester/upload_hsc_rc2.py @@ -194,7 +194,7 @@ def upload_hsc_images(dest_bucket, group_id, butler, refs): ref.dataId["detector"], group_id, 0, - ref.dataId["exposure"], + exposure_num, ref.dataId["physical_filter"], ) transferred = butler.retrieveArtifacts(