fabio.converters

Package fabio :: Module converters |
[hide private]
[frames] | no frames]

# Module converters

source code

Converter module. This is for the moment empty (populated only with almost pass through anonymous functions) but aims to be populated with more sofisticated translators ...

Author: J\xc3\xa9r\xc3\xb4me Kieffer

Contact: jerome.kieffer@esrf.eu

Copyright: European Synchrotron Radiation Facility, Grenoble, France

License: GPLv3+

Functions | [hide private]
convert_data_integer(data) convert data to integer | source code
convert_data(inp, outp, data) Return data converted to the output format ... | source code
convert_header(inp, outp, header) return header converted to the output format | source code

Variables | [hide private]
| logger = `logging.getLogger("converter")`
| CONVERSION_HEADER = ``{``(``'``edfimage``'``,` `'``edfimage``'``)``:` <function <lamb`...``
| CONVERSION_DATA = ``{``(``'``edfimage``'``,` `'``OXDimage``'``)``:` <function convert`...``
| __package__ = ``'``fabio``'``

Function Details | [hide private]

### convert_data(inp, outp, data) | source code
Return data converted to the output format ... over-simplistic implementation for the moment ... Parameters: `inp`, `outp` - input/output format like "cbfimage" `data(ndarray)` - the actual dataset to be transformed

### convert_header(inp, outp, header) | source code
return header converted to the output format Parameters: `inp`, `outp` - input/output format like "cbfimage" `header(dict)` - the actual set of headers to be transformed

Variables Details | [hide private]

  ### CONVERSION_HEADER Value:
      {('edfimage', 'edfimage'): <function <lambda> at 0x2136500>}

  ### CONVERSION_DATA Value:
      {("edfimage", "edfimage"): lambda data: data, ("edfimage", "cbfimage")
      : convert_data_integer, ("edfimage", "mar345image"): convert_data_inte
      ger, ("edfimage", "fit2dmaskimage"): convert_data_integer, ("edfimage"
      , "kcdimage"): convert_data_integer, ("edfimage", "OXDimage"): convert
      _data_integer, ("edfimage", "pnmimage"): convert_data_integer,}