Skip to content

Commit 82856d4

Browse files
committed
Fix mypy annotation for altAz coord
1 parent 2b86e9a commit 82856d4

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

python/lsst/rubintv/production/mountTorques.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,7 @@ def calculateMountErrors(
150150
# TODO: DM-33859 remove this once it can be got from the expRecord
151151
md = butler.get("raw.metadata", expRecord.dataId, detector=0)
152152
obsInfo = ObservationInfo(md)
153+
assert obsInfo.altaz_begin is not None, "ObservationInfo did not have an azimuth value"
153154
azimuth = obsInfo.altaz_begin.az.value
154155
logger.debug(f"dataId={dataIdString}, imgType={imgType}, Times={tStart}, {tEnd}")
155156

0 commit comments

Comments
 (0)