LSSTApplications  20.0.0
LSSTDataManagementBasePackage
compression.py
Go to the documentation of this file.
1 __all__ = ["imageCompressionDisabled"]
2 
3 from contextlib import contextmanager
4 from .fits import getAllowImageCompression, setAllowImageCompression
5 
6 
7 @contextmanager
9  """Create a context where FITS image compression is disabled.
10 
11  The previous compression setting is restored on exit.
12  """
14  try:
16  yield
17  finally:
lsst::afw::fits.compression.imageCompressionDisabled
def imageCompressionDisabled()
Definition: compression.py:8
lsst::afw::fits::setAllowImageCompression
void setAllowImageCompression(bool allow)
Definition: fits.cc:1546
lsst::afw::fits::getAllowImageCompression
bool getAllowImageCompression()
Definition: fits.cc:1548