Skip to content

Commit

Permalink
Initialize raw WCS before raw VisitInfo.
Browse files Browse the repository at this point in the history
The order of operations here seems to affect the WCS created because
VisitInfo strips things WCS wants to use; this is quite worrying in
general, but happily the reverse is not true, so this works for now.
  • Loading branch information
TallJimbo committed Dec 17, 2018
1 parent 32168f1 commit dd3a292
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/lsst/daf/butler/formatters/fitsRawFormatterBase.py
Original file line number Diff line number Diff line change
Expand Up @@ -210,8 +210,8 @@ def readFull(self, fileDescriptor, parameters=None):
full.setVariance(variance)
metadata = self.readMetadata(fileDescriptor)
info = full.getInfo()
info.setVisitInfo(self.makeVisitInfo(metadata))
info.setWcs(self.makeWcs(metadata))
info.setVisitInfo(self.makeVisitInfo(metadata))
# We shouldn't have to call stripMetadata() here because that should
# have been done by makeVisitInfo and makeWcs (or by subclasses that
# strip metadata for other components when constructing them).
Expand Down

0 comments on commit dd3a292

Please sign in to comment.