- use long_description_content_type="text/markdown" in setup.py
- unpin click dep, tested with latest 8.1.3
ignore_missing
option onget_flag
to bitwise and flag meanings, but not raise exception if a meaning is missing from the flag.
- 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
- Bug fix: cli: fix
--show_flags
option not working for Python 3
- cli: Support Python 3 by removing relative import.
- setup.py move to
convert_file
from deprecated pypandocconvert
- Adds shape, fill shortcuts for
init_from_netcdf
- Persist internal reference to netcdf object for convenience in
write_to_netcdf
.
- 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.
- Add reset and init to custom value other than 0.
- 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.
- Handle flags that are set to fill values, by definition, no flags are set when the value is filled.
- 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.