sasdata.file_converter.otoko_loader module¶
Here we handle loading of “OTOKO” data (for more info about this format see the comment in load_otoko_data). Given the paths of header and data files, we aim to load the data into numpy arrays for use later.
- class sasdata.file_converter.otoko_loader.CStyleStruct(**kwds)¶
Bases:
object
A nice and easy way to get “C-style struct” functionality.
- class sasdata.file_converter.otoko_loader.OTOKOData(q_axis, data_axis)¶
Bases:
object
- class sasdata.file_converter.otoko_loader.OTOKOLoader(qaxis_path, data_path)¶
Bases:
object
- load_otoko_data()¶
Loads “OTOKO” data, which is a format that stores each axis separately. An axis is represented by a “header” file, which in turn will give details of one or more binary files where the actual data is stored.
Given the paths of two header files, this function will load each axis in turn. If loading is successful then an instance of the OTOKOData class will be returned, else an exception will be raised.
For more information on the OTOKO file format, please see: http://www.diamond.ac.uk/Home/Beamlines/small-angle/SAXS-Software/CCP13/ XOTOKO.html
- exception sasdata.file_converter.otoko_loader.OTOKOParsingError¶
Bases:
Exception