Hide keyboard shortcuts

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

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

18

19

20

21

22

23

24

25

26

27

28

29

30

31

32

33

34

35

36

37

38

__all__ = [] 

 

from lsst.utils import continueClass 

from .fits import (Fits, ImageWriteOptions, ImageCompressionOptions, ImageScalingOptions, 

compressionAlgorithmToString, scalingAlgorithmToString) 

 

 

@continueClass # noqa F811 

class Fits: 

def __enter__(self): 

return self 

 

def __exit__(self, cls, exc, traceback): 

self.closeFile() 

 

 

@continueClass # noqa F811 

class ImageWriteOptions: 

def __repr__(self): 

return "%s(compression=%r, scaling=%r)" % (self.__class__.__name__, self.compression, self.scaling) 

 

 

@continueClass # noqa F811 

class ImageCompressionOptions: 

def __repr__(self): 

return ("%s(algorithm=%r, tiles=%r, quantizeLevel=%f" % 

(self.__class__.__name__, compressionAlgorithmToString(self.algorithm), 

self.tiles.tolist(), self.quantizeLevel)) 

 

 

@continueClass # noqa F811 

class ImageScalingOptions: 

def __repr__(self): 

return ("%s(algorithm=%r, bitpix=%d, maskPlanes=%s, seed=%d, quantizeLevel=%f, quantizePad=%f, " 

"fuzz=%s, bscale=%f, bzero=%f" % 

(self.__class__.__name__, scalingAlgorithmToString(self.algorithm), self.bitpix, 

self.maskPlanes, self.seed, self.quantizeLevel, self.quantizePad, self.fuzz, 

self.bscale, self.bzero))