Skip to content

Commit

Permalink
Update getSeqNumsForDayObs to work with multi-chip cameras
Browse files Browse the repository at this point in the history
  • Loading branch information
mfisherlevine committed Jul 5, 2024
1 parent cd3d81e commit 68b0498
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/lsst/summit/utils/butlerUtils.py
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ def getSeqNumsForDayObs(butler: dafButler.Butler, day_obs: int, extraWhere: str
Returns
-------
seq_nums : `iterable`
seq_nums : `list` of `int`
The seq_nums taken on the corresponding day_obs in ascending numerical
order.
"""
Expand All @@ -281,7 +281,7 @@ def getSeqNumsForDayObs(butler: dafButler.Butler, day_obs: int, extraWhere: str
records = butler.registry.queryDimensionRecords(
"exposure", where=where, bind={"dayObs": day_obs}, datasets="raw"
)
return sorted([r.seq_num for r in records])
return sorted(set([r.seq_num for r in records]))


def sortRecordsByDayObsThenSeqNum(
Expand Down

0 comments on commit 68b0498

Please sign in to comment.