sasdata.dataloader.readers.sesans_reader module¶
SESANS reader (based on ASCII reader)
Reader for .ses or .sesans file format
Jurrian Bakker
- class sasdata.dataloader.readers.sesans_reader.Reader¶
Bases:
FileReaderClass to load sesans files (6 columns).
- __annotations__ = {}¶
- __doc__ = '\n Class to load sesans files (6 columns).\n '¶
- __module__ = 'sasdata.dataloader.readers.sesans_reader'¶
- static _insist_header(headers: list, name: str)¶
- static _unit_conversion(value: float, value_unit: str, default_unit: str) -> (<class 'float'>, <class 'str'>)¶
Performs unit conversion on a measurement.
- Parameters:
value – The magnitude of the measurement
value_unit – a string containing the final desired unit
default_unit – string with the units of the original measurement
- Returns:
The magnitude of the measurement in the new units
- _unit_fetch(unit: str) str¶
- allow_all = True¶
- ext = ['.ses', '.SES', '.sesans', '.SESANS']¶
- get_file_contents()¶
Reader specific class to access the contents of the file All reader classes that inherit from FileReader must implement
- type = ['SESANS files (*.ses)|*.ses', 'SESANS files (*..sesans)|*.sesans']¶
- type_name = 'SESANS'¶