Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DM-31175: Tiny tweaks #14

Merged
merged 2 commits into from
Dec 6, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 2 additions & 0 deletions python/lsst/summit/extras/animation.py
Original file line number Diff line number Diff line change
Expand Up @@ -239,6 +239,8 @@ def _titleFromExp(self, exp, dataId):
filt, grating = filterCompound.split('~')
rawMd = self.butler.get('raw.metadata', dataId)
airmass = airMassFromRawMetadata(rawMd) # XXX this could be improved a lot
if not airmass:
airmass = -1
dayObs = dayObsIntToString(getDayObs(dataId))
timestamp = expRecord.timespan.begin.to_datetime().strftime("%H:%M:%S") # no microseconds
ms = expRecord.timespan.begin.to_datetime().strftime("%f") # always 6 chars long, 000000 if zero
Expand Down
4 changes: 3 additions & 1 deletion tests/SConscript
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@ scripts.BasicSConscript.tests(pyList=[])

passThrough = ['DAF_BUTLER_REPOSITORY_INDEX', # for repo locations
'EXTERNAL_URL', # needed to determine site location - see utils.getSite()
'HOSTNAME' # needed to determine site location - see utils.getSite()
'HOSTNAME', # needed to determine site location - see utils.getSite()
'PGPASSFILE', # needed for butler authentication
'PGUSER', # needed for butler authentication
]

for item in passThrough:
Expand Down