LSSTApplications  18.1.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:
void setAllowImageCompression(bool allow)
Definition: fits.cc:1505
bool getAllowImageCompression()
Definition: fits.cc:1507