Skip to content

Commit

Permalink
Update some comment strings
Browse files Browse the repository at this point in the history
  • Loading branch information
timj committed Jan 22, 2020
1 parent a0e63e6 commit 9bdca29
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions python/lsst/obs/base/ingest.py
Original file line number Diff line number Diff line change
Expand Up @@ -236,15 +236,17 @@ def extractMetadata(self, filename: str) -> RawFileData:
Notes
-----
Assumes that there is a single dataset associated with the given
file. This method must be subclassed if multiple datasets are
stored in a single raw file.
file. Instruments using a single file to store multiple datasets
must implement their own version of this method.
"""
phdu = readMetadata(filename, 0)
header = merge_headers([phdu, readMetadata(filename)], mode="overwrite")
fix_header(header)
datasets = [self._calculate_dataset_info(header, filename)]

# Assume all datasets in this file use the same Formatter
# The data model currently assumes that whilst multiple datasets
# can be associated with a single file, they must all share the
# same formatter.
FormatterClass = self.instrument.getRawFormatter(datasets[0].dataId)

return RawFileData(datasets=datasets, filename=filename,
Expand Down

0 comments on commit 9bdca29

Please sign in to comment.