Skip to content

Commit

Permalink
remove displayLib
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthias Wittgen committed Mar 22, 2021
1 parent b7b9a9f commit da7b7e4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions python/lsst/display/firefly/firefly.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
import lsst.afw.display.interface as interface
import lsst.afw.display.virtualDevice as virtualDevice
import lsst.afw.display.ds9Regions as ds9Regions
import lsst.afw.display.displayLib as displayLib
import lsst.afw.display as afwDisplay
import lsst.afw.math as afwMath
import lsst.log

Expand Down Expand Up @@ -164,7 +164,7 @@ def _mtv(self, image, mask=None, wcs=None, title=""):
self._erase()

with tempfile.NamedTemporaryFile() as fd:
displayLib.writeFitsImage(fd.name, image, wcs, title)
afwDisplay.writeFitsImage(fd.name, image, wcs, title)
fd.flush()
fd.seek(0, 0)
self._fireflyFitsID = _fireflyClient.upload_data(fd, 'FITS')
Expand Down Expand Up @@ -200,7 +200,7 @@ def _mtv(self, image, mask=None, wcs=None, title=""):
if self.verbose:
print('displaying mask')
with tempfile.NamedTemporaryFile() as fdm:
displayLib.writeFitsImage(fdm.name, mask, wcs, title)
afwDisplay.writeFitsImage(fdm.name, mask, wcs, title)
fdm.flush()
fdm.seek(0, 0)
self._fireflyMaskOnServer = _fireflyClient.upload_data(fdm, 'FITS')
Expand Down

0 comments on commit da7b7e4

Please sign in to comment.