Skip to content

v2.4.0

Choose a tag to compare

@ludwiglierhammer ludwiglierhammer released this 01 Apr 09:12
· 143 commits to main since this release
57670bb

Contributors to this version: Ludwig Lierhammer (@ludwiglierhammer) and Jan Marius Willruth (@JanWillruth)

New features and enhancements

  • cdm_mapper.utils.mapping_functions: Add function gdac_pressure in anticipation of moving conversion steps to the mapper in the future. (PR/350)
  • mdf_reader/cdm_mapper: optionally, convert data types to strings when reading and writing data from/to disk (PR/401)
  • mdf_reader/cdm_mapper: optionally, convert data types from strings when reading and writing data from/to disk (PR/401)

Breaking changes

  • mdf_reader: Update and rename GDAC variable names (schemas/gdac) and code tables (codes/gdac) to align with current standards. (GH/341, PR/350)

  • cdm_mapper: (PR/350)

    • Update and rename GDAC variable names in tables/gdac.
    • Fix gdac_latitude and gdac_longitude (utils/mapping_functions.py) not being used in observations.json
  • mdf_reader/cdm_mapper: use parquet as default instead of csv when reading and writing data from/to disk (PR/401)

  • cdm_mapper: do not convert data types to strings while mapping to the CDM (GH/398, PR/401)

  • cdm_mapper: set default decimal_places from 0 to 1 for location_accuracy, report_time_accuracy, station_speed and station_course (PR/401)

Bug fixes

  • cdm_mapper.mapper.map_model: write data columns to df._attrs instead of df.attrs to avoid crashing class methods (GH/390, PR/391)
  • cdm_mapper.utils.mapping_functions: Change method_b in mapping_function.py to work with both str and int. (PR/350)
  • cdm_mapper.map_models: write columns directly as an attribute to result to avoid crashing further DataFrame methods (GH/394, PR/397)