fabio.OXDimage.Section

Package fabio :: Module OXDimage :: Class Section |
[hide private]
[frames] | no frames]

# Class Section

source code

    object --+
             |
            Section

Small helper class for writing binary headers

Instance Methods | [hide private]
__init__(self, size, dictHeader) x.__init__(...) initializes x; see x.__class__.__doc__ for signature | source code
__repr__(self) repr(x) | source code
getSize(self, dtype) | source code
setData(self, key, offset, dtype, default=None) | source code
Inherited from `object`: `__delattr__`, `__format__`, `__getattribute__`, `__hash__`, `__new__`, `__reduce__`, `__reduce_ex__`, `__setattr__`, `__sizeof__`, `__str__`, `__subclasshook__`

Properties | [hide private]
Inherited from `object`: `__class__`

Method Details | [hide private]

### __init__(self, size, dictHeader) (Constructor) | source code
x.__init__(...) initializes x; see x.__class__.__doc__ for signature Parameters: `size` - size of the header section in bytes `dictHeader` - headers of the image Overrides: object.__init__

### __repr__(self) (Representation operator) | source code
repr(x) Overrides: object.__repr__ (inherited documentation)

### setData(self, key, offset, dtype, default=None) | source code
Parameters: `offset` - int, starting position in the section `key` - name of the header key `dtype` - type of the data to insert (defines the size!)