Skip to content

Commit

Permalink
Merge branch 'tickets/DM-27168' into master
Browse files Browse the repository at this point in the history
  • Loading branch information
czwa committed Nov 12, 2020
2 parents a3f3dda + ccfea89 commit 8f355a9
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions python/lsst/obs/base/formatters/filter.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,17 +138,4 @@ def _toBytes(self, inMemoryDataset: Any) -> bytes:
filter["name"] = inMemoryDataset.getName()
filter["aliases"] = inMemoryDataset.getAliases()

# This can fail if the filter is no longer available in the
# Singleton
try:
filterProperty = inMemoryDataset.getFilterProperty()
except LookupError:
pass
else:
properties = {}
properties["lambdaEff"] = filterProperty.getLambdaEff()
properties["lambdaMax"] = filterProperty.getLambdaMax()
properties["lambdaMin"] = filterProperty.getLambdaMin()
filter["properties"] = properties

return yaml.dump(filter).encode()

0 comments on commit 8f355a9

Please sign in to comment.