0.5.0
What's Changed
Adjustments and Enhancements
-
Added support for validating Zarr and HDF-5 groups and their items.
Rules can now validatexarray.DataTreeobjects originating
fromxarray.open_datatree()by implementing
rule operation methodRuleOp.validate_datatree(ctx, node). (#54) -
Added a new core rule
var-missing-datathat checks for the recommended
use of a variable's missing data. -
Added a new core rule
access-latencythat can be used to check the
time it takes to open a dataset. -
Added HTML styling for both CLI output (
--format html) and rendering
ofResultobjects in Jupyter notebooks. -
Rule
no-empty-chunkshas been taken off the"recommended"settings
as there is no easy/efficient way to tell whether a dataset has
been written usingwrite_emtpy_chunksoption or not.
The rule message itself has been fixed. (#45) -
Adjusted messages of rules
var-unitsandtime-coordinate
to be consistent with messages of other rules. -
Core rule
dataset-title-attrhas been moved intoxcubeplugin
and renamed toxcube/dataset-titlebecause the core rule
content-desccovers checking for dataset titles and other descriptive
attributes.
Incompatible API changes
-
Changed general use of term verify into validate:
- prefixed
RuleOpmethods byvalidate_for clarity. - renamed
XRLint.verify_datasets()intovalidate_files() - renamed
Lint.verify_dataset()intovalidate()
- prefixed
-
Renamed nodes and node properties for clarity and consistency:
- renamed
DataArrayNodeintoVariableNode - renamed
DataArrayNode.data_arrayintoVariableNode.array
- renamed
-
Various changes for improved clarity regarding configuration management:
- introduced type aliases
ConfigLikeandConfigObjectLike. - renamed
ConfigintoConfigObject - renamed
ConfigList.configsintoconfig_objects - renamed
ConfigListintoConfig - renamed
ConfigList.compute_config()intocompute_config_object() - renamed
Result.configintoconfig_object - renamed
XRLint.load_config_list()intoinit_config() - added class method
from_config()toConfigList. - removed function
xrlint.config.merge_configsas it was no longer used.
- introduced type aliases
-
Removed class method
Result.new()as it was no longer used.
Other changes
- XRLint now works with zarr >=2,<3 and zarr >=3.0.2
- Added more tests so we finally reached 100% coverage.
- New
PluginMeta.docs_urlproperty. - Inserted copyright header into all source files.
Full Changelog: v0.4.1...v0.5.0