Skip to content

Commit

Permalink
Move metadata property to parent class
Browse files Browse the repository at this point in the history
reading FITS metadata is needed there.
  • Loading branch information
timj committed Aug 2, 2019
1 parent 306290a commit 652b9f2
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions python/lsst/obs/base/fitsRawFormatterBase.py
Expand Up @@ -44,7 +44,6 @@ def translatorClass(self):
return None

_observationInfo = None
_metadata = None

def readImage(self):
"""Read just the image component of the Exposure.
Expand Down Expand Up @@ -224,12 +223,3 @@ def observationInfo(self):
if self._observationInfo is None:
self._observationInfo = ObservationInfo(self._metadata, translator_class=self.translatorClass)
return self._observationInfo

@property
def metadata(self):
"""The metadata read from this raw file. It will be stripped as
components are extracted from it.
"""
if self._metadata is None:
self._metadata = self.readMetadata()
return self._metadata

0 comments on commit 652b9f2

Please sign in to comment.