Skip to content

v2.2.0

Choose a tag to compare

@ludwiglierhammer ludwiglierhammer released this 23 Jan 10:28
· 406 commits to main since this release
26b18e4

Contributors to this version: Ludwig Lierhammer (@ludwiglierhammer) and Joseph Siddons (@jtsiddons)

Announcements

This release adds support for Python 3.14 (PR/339).

New features and enhancements

  • new parameter in function map_model (PR/327).

    • drop_duplicates: If True remove duplicated rows (default: True).
    • drop_missing_obs: If True remove observation rows without a valid observation_value (default: True).
  • new Pub47 testdata (test_data["test_pub47"]) (PR/327)

Breaking changes

  • cdm_reader_mapper.cdm_mapper: rename map_and_convert to helper function _map_and_convert (PR/343)
  • replace logging.error with raise error statements (PR/345)

Internal changes

  • implement map_model test for Pub47 data (GH/310, PR/327)

  • rename test data class from test_data to TestData (PR/327)

  • update .gitignore (PR/324)

  • update and add docstrings for multiple functions (PR/324)

  • cdm_reader_mapper.cdm_mapper: update mapping functions for more readability (PR/324)

  • cdm_reader_mapper.cdm_mapper: introduce some helper functions (PR/324)

  • add more unit tests (GH/311, PR/324)

  • cdm_reader_mapper.cdm_mapper: split map_and_convert into multiple helper functions (GH/333, PR/343)

  • exclude tests/*.py from pre-commit codespell hook (PR/345)

  • replace many os functions with pathlib.Path (PR/345)

  • re-work mdf_reader (GH/334, PR/345)

    • remove reader.MDFFileReader class
    • remove utils.configurator module
    • remove both utils.decoder and mdf_reader.utils.converter modules
    • introduce utils.parser module: bunch of functions to parse input data into MDF data
    • introduce utils.convert_and_decode: make converter and decoder functions more modular
    • make utils.validator module more modular
    • utils.filereader.FileReader uses utils.parser function for parsing
    • move many helper function to utils.utilities
    • serialize schemas.schemas module
  • add type hints and docstrings to mdf_reader (PR/345)

  • add unit tests for mdf_reader module to testing suite (PR/345)
    Bug fixes


  • add Pub47 mapping code tables (observing_frequency and vessel_type) (GH/308, PR/327)
  • observation tables are not empty anymore after mapping Pub47 raw data to the CDM (GH/309,PR/327)