Skip to content

v1.3.0

Choose a tag to compare

@joshduran joshduran released this 23 Jun 18:25
· 12 commits to master since this release

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 Report and ReportTable classes introduced to provide access to report data stored in opus files.
  • __str__ dunder methods for OPUSFile and FileDirectory classes are now supported.
  • Blocks that have an error while parsing are stored in parse_error_blocks attribute 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 BlockType class which is basically a tuple with some integrated convenience functions.
  • Documented warnings for depreciated functions (integrated into BlockType now): get_type_code_label, get_block_type_label,
  • Refactored OPUSFile class 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