Coverage for python/lsst/afw/fits/fitsContinued.py : 80%

Hot-keys on this page
r m x p toggle line displays
j k next/prev highlighted chunk
0 (zero) top of page
1 (one) first highlighted chunk
1__all__ = []
3from lsst.utils import continueClass
4from .fits import (Fits, ImageWriteOptions, ImageCompressionOptions, ImageScalingOptions,
5 compressionAlgorithmToString, scalingAlgorithmToString)
8@continueClass # noqa: F811 (FIXME: remove for py 3.8+)
9class Fits: # noqa: F811
10 def __enter__(self):
11 return self
13 def __exit__(self, cls, exc, traceback):
14 self.closeFile()
17@continueClass # noqa: F811 (FIXME: remove for py 3.8+)
18class ImageWriteOptions: # noqa: F811
19 def __repr__(self):
20 return f"{self.__class__.__name__}(compression={self.compression!r}, scaling={self.scaling!r})"
23@continueClass # noqa: F811 (FIXME: remove for py 3.8+)
24class ImageCompressionOptions: # noqa: F811
25 def __repr__(self):
26 return (f"{self.__class__.__name__}(algorithm={compressionAlgorithmToString(self.algorithm)!r}, "
27 f"tiles={self.tiles.tolist()!r}, quantizeLevel={self.quantizeLevel:f})")
30@continueClass # noqa: F811 (FIXME: remove for py 3.8+)
31class ImageScalingOptions: # noqa: F811
32 def __repr__(self):
33 return (f"{self.__class__.__name__}(algorithm={scalingAlgorithmToString(self.algorithm)!r}, "
34 f"bitpix={self.bitpix}, maskPlanes={self.maskPlanes}, seed={self.seed} "
35 f"quantizeLevel={self.quantizeLevel}, quantizePad={self.quantizePad}, "
36 f"fuzz={self.fuzz}, bscale={self.bscale}, bzero={self.bzero})")