Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions python/tester/upload_hsc_rc2.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,13 +92,14 @@ def get_hsc_visit_list(butler, n_sample):
Returns
-------
visits : `list` [`int`]
A list of randomly selected visit IDs from the HSC-RC2 dataset
A list of randomly selected non-narrow-band visit IDs from the HSC-RC2 dataset
"""
results = butler.registry.queryDimensionRecords(
"visit",
datasets="raw",
collections="HSC/RC2/defaults",
where="instrument='HSC' and exposure.observation_type='science'",
where="instrument='HSC' and exposure.observation_type='science' "
"and band in ('g', 'r', 'i', 'z', 'y')",
)
rc2 = [record.id for record in set(results)]
if n_sample > len(rc2):
Expand Down