4 from .fits
import (Fits, ImageWriteOptions, ImageCompressionOptions, ImageScalingOptions,
5 compressionAlgorithmToString, scalingAlgorithmToString)
20 return "%s(compression=%r, scaling=%r)" % (self.__class__.__name__, self.compression, self.scaling)
26 return (
"%s(algorithm=%r, tiles=%r, quantizeLevel=%f" %
28 self.tiles.tolist(), self.quantizeLevel))
34 return (
"%s(algorithm=%r, bitpix=%d, maskPlanes=%s, seed=%d, quantizeLevel=%f, quantizePad=%f, " 35 "fuzz=%s, bscale=%f, bzero=%f" %
37 self.maskPlanes, self.seed, self.quantizeLevel, self.quantizePad, self.fuzz,
38 self.bscale, self.bzero))
std::string scalingAlgorithmToString(ImageScalingOptions::ScalingAlgorithm algorithm)
Provide string version of compression algorithm.
std::string compressionAlgorithmToString(ImageCompressionOptions::CompressionAlgorithm algorithm)
Provide string version of compression algorithm.
def __exit__(self, cls, exc, traceback)