ess.reduce.nexus.merge.MergeRules#
- class ess.reduce.nexus.merge.MergeRules(*, rules=(), ignore=())[source]#
Which differences between runs prevent merging them.
- __init__(*, rules=(), ignore=())#
Methods
__init__(*[, rules, ignore])from_toml(path)Rules from a TOML file.
ignores(path)Whether
pathor a group that contains it is ignored.rule_for(path)Attributes
Glob patterns on absolute paths of groups and datasets whose values, attributes, and contents may differ between runs.
Checks of NXlogs; the first rule that matches a log applies.
- classmethod from_toml(path)[source]#
Rules from a TOML file.
A tolerance is a string with a unit, such as
'0.5 K', converted to the unit of the log’s values. A number is dimensionless, except that0requires identical values in any unit:ignore = ["/entry/experiment_description"] [[rule]] paths = ["/entry/instrument/*/target_value"] error = 0 [[rule]] paths = ["/entry/sample/temperature"] warn = "0.1 K" error = "0.5 K"
- Parameters:
- Returns:
MergeRules– The rules in the file.