Skip to content

Bugfixes and __version__ attribute

Compare
Choose a tag to compare
@slinnarsson slinnarsson released this 27 Feb 16:26
· 269 commits to master since this release

Bugfixes and minor new features:

  • loompy.__version___ attribute (gives version of loompy package)
  • Better handling of global attributes when combining files
  • Make it possible to delete global attributes

Experimental new file feature: file spec version stamp

LOOM_SPEC_VERSION HDF5 attribute on the root group. Use it like this:

with loompy.connect(filename) as lc:
    if "LOOM_SPEC_VERSION" in lc.attrs:
        print("file version: " + lc.attrs.LOOM_SPEC_VERSION)
    else:
        print("file version: less than 2.0.1")

Note: this is experimental, and is a proposed new feature of the loom file format specification. As such, the attribute is not guaranteed to exist, and you must always check for it before trying to read it. If it doesn't exist, then the loom file spec version is assumed to be less than "2.0.1" by default.

Note: the LoomSpecVersion is not the same thing as the loompy package version.