Skip to content

Version 1.4.2

Compare
Choose a tag to compare
@mpsonntag mpsonntag released this 26 Nov 15:32
· 651 commits to master since this release
ac805c5

Print methods

pprint methods have been added to both Section and Property
to print whole Section trees with their child sections and properties.
The __repr__ style of Section and Property has been changed to
be more similar to the nixpy __repr__ style.
Printing a Section now also features the immediate Property child count
in addition to the immediate Section child count. See #309.

Deprecation of 'Property.value' in favour of 'Property.values'

To make working with odML more similar to working with the
metadata part of nixpy, the Property.value
attribute has been marked deprecated and the Property.values
attribute has been added. See #308.

Toggle warning messages when loading a document from file

A 'show_warnings' flag was added to all load from file methods. The flag is 'True' by
default and toggles whether warning messages are printed to the
command line when loading an odML document. See #311 for details.

Uncertainty changes

Uncertainty is now limited to float only. See #294.

Version converter changes

The VersionConverter dealt with an edge case of XML test files with opening tags
that were missing their closing tag rendering them broken. Catching this one edge case
circumvented opening XML files via lxml, leaving the resulting document open to various
encoding problems.

Support to resolve the specific tag edge cases is dropped in favour of properly opening
XML files via lxml. See #301.

A further change addressed, that previously all same named odml.Sections within a
document were indexed upon conversion. With these changes, only same named
odml.Sections that reside on the same level are indexed. See #312 for details.

Additional console script

The odmlconversion convenience console script has been added to convert multiple
previous odML version files to the latest odML version. See #302 for details.

Changes in cloning behaviour

When cloning a Section or a Property by default the id of any object is changed
to a new UUID. The cloning methods now feature a new keep_id attribute. If set to
True, the cloned object and any cloned children retain their original id. This
is meant to create exact copies of Section-Property trees in different documents. See #304 for details.

Additional validation

When a document is saved, a new validation check makes sure, that a document
contains only unique UUIDs this is required due to the introduction of creating
clones with identical ids. See #303 for details.