Skip to content

Latest commit

 

History

History
62 lines (50 loc) · 2.46 KB

CHANGELOG.md

File metadata and controls

62 lines (50 loc) · 2.46 KB

v0.3.2 - 2022 10 02

  • use long_description_content_type="text/markdown" in setup.py
  • unpin click dep, tested with latest 8.1.3

v0.3.1 - 2022 06 26

  • ignore_missing option on get_flag to bitwise and flag meanings, but not raise exception if a meaning is missing from the flag.

v0.3.0 - 2020 12 11

  • New method: FlagWrap.is_valid_meaning for convenience.
  • Change reduce method to exclude entire flag vectors (all bits) from reduction if any bits in the exclude_mask are set.
  • Make FlagWrap.flag_meanings "public" (prev. FlagWrap._flag_meanings)
  • Adds name attribute, available from init as kwarg, for misc use.
  • Drops support for Python 2.7

v0.2.6 - 2020 04 03

  • Bug fix: cli: fix --show_flags option not working for Python 3

v0.2.5 - 2019 12 16

  • cli: Support Python 3 by removing relative import.
  • setup.py move to convert_file from deprecated pypandoc convert
  • Adds shape, fill shortcuts for init_from_netcdf
  • Persist internal reference to netcdf object for convenience in write_to_netcdf.

v0.2.0 - 2018 09 25

  • netcdf agnostic, just need flag_meanings, flag_values, and optionally flag_masks.
  • Previous FlagWrap(netcdf.Variable) construction should be replaced with FlagWrap.init_from_netcdf(netcdf.Variable) class method to conveniently construct from FlagWrap.
  • Confusing sync method removed. Replaced with interface: FlagWrap.write_to_netcdf(netcdf.Variable).
  • Fixed bug in setting mutually exclusive flag_meanings.
  • Added comprehensive testing.

v0.1.1 - 2018 06 05

  • Add reset and init to custom value other than 0.

v0.1.0 - 2018 06 05

  • Fix method for setting flags. Previous method did not work properly in some cases, eg. good_quality_qf. Now clears bits in flag under the mask before setting value.
  • Adds a get_mask_for_meaning function.
  • Improves documentation and testing.

v0.0.3 - 2018 05 31

  • Handle flags that are set to fill values, by definition, no flags are set when the value is filled.

v0.0.2

  • Change: combine get_flag and get_flags -> get_flag. Pass get_flag either a list of flag_meanings, or a single flag_meaning string.
  • Optimization: exit_on_good option for get_flags_set_at_index. If known that no other flags can be set on "good" flag and good flag == 0, skip extra work of searching through all other flags.
  • New: get_value_for_meaning function. Use case eg: start by setting all flags to a "missing_data" value, but avoid hard coding the "missing_data" value.