v1.3.0
This release refactors a lot of the OPUS file code to be a bit more modular and separated into a larger number of files to improve clarity. This release supports a new Report data type, which allows users to access report data (e.g. multi-evaluation test reports) within the OPUSFile class.
New Features to OPUSFIle:
- New
ReportandReportTableclasses introduced to provide access to report data stored in opus files. __str__dunder methods forOPUSFileandFileDirectoryclasses are now supported.- Blocks that have an error while parsing are stored in
parse_error_blocksattribute to improve error handling for unexpected block characteristics. - Can now read "compact" spectra which are saved differently than standard data blocks. These data blocks are denoted with a "_c" (e.g. igsm_c or a_c).
- Adjusted text parsing decoding priority to better support chinese characters.
- Updated documentation.
- Updated tests to reflect changes.
Changes:
- Introduced new
BlockTypeclass which is basically atuplewith some integrated convenience functions. - Documented warnings for depreciated functions (integrated into
BlockTypenow):get_type_code_label,get_block_type_label, - Refactored
OPUSFileclass into a larger number of files to make it more clear which classes depend on each other, and make it quicker to find the code of interest.
Bug Fixes:
- Fixed bug where upper case parameter attributes were invalid
- Update a few block types to be correctly categorized as reports