Skip to main content

Napari plugin to store set of layers in a .h5 file. Label layer are stored in a sparse representation

Project description

napari-hdf5-labels-io

License PyPI Python Version tests codecov

Napari plugin to store Napari projects in a .h5 file. Label layer are stored in a sparse representation (COO list).


This napari plugin was generated with Cookiecutter using with @napari's cookiecutter-napari-plugin template.

Description

This Napari plugin provides a writer and reader to store existing layers in the current Napari window, all the metadata is stored as well in a HDF5 file. All the stored preferences are included when a project file is opened.

Label layers are stored in a coordinate list sparse representation with the Sparse module to keep the project file size minimum (aiming to implement this in other layers in the future).

HDF5 file architecture

The project file is a HDF5 generated with the h5py module. The file groups correspond to the different Napari layer types and the layer metadata is stored as attributes of each layer.

In the case of the meta dictionary which is nested in the LayerData meta dictionary (Napari IO), new keys are generated in the outer dictionary to use them as h5 dataset attributes. This nested dictionary architecture is reconstructed by the reader to ensure format compatibility.

Installation

You can install napari-hdf5-labels-io via pip:

pip install napari-hdf5-labels-io

Contributing

Contributions are very welcome. Tests can be run with tox, please ensure the coverage at least stays the same before you submit a pull request.

License

Distributed under the terms of the GNU GPL v3.0 license, "napari-hdf5-labels-io" is free and open source software.

Issues

If you encounter any problems, please file an issue along with a detailed description.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

napari-hdf5-labels-io-0.2.dev1.tar.gz (28.9 kB view details)

Uploaded Source

Built Distribution

napari_hdf5_labels_io-0.2.dev1-py3-none-any.whl (19.9 kB view details)

Uploaded Python 3

File details

Details for the file napari-hdf5-labels-io-0.2.dev1.tar.gz.

File metadata

  • Download URL: napari-hdf5-labels-io-0.2.dev1.tar.gz
  • Upload date:
  • Size: 28.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/51.3.3.post20210118 requests-toolbelt/0.9.1 tqdm/4.55.1 CPython/3.8.5

File hashes

Hashes for napari-hdf5-labels-io-0.2.dev1.tar.gz
Algorithm Hash digest
SHA256 373c534e35a88ae90bce335d4df3ee41dc77f13e3a9182fd8139a67bc94c0b84
MD5 98779aa6f8b642cfb6b3a402664d65a4
BLAKE2b-256 f8678a84db07d4f06dff4355a730be00a36164ae17636f9deb2db566c45db789

See more details on using hashes here.

Provenance

File details

Details for the file napari_hdf5_labels_io-0.2.dev1-py3-none-any.whl.

File metadata

  • Download URL: napari_hdf5_labels_io-0.2.dev1-py3-none-any.whl
  • Upload date:
  • Size: 19.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/51.3.3.post20210118 requests-toolbelt/0.9.1 tqdm/4.55.1 CPython/3.8.5

File hashes

Hashes for napari_hdf5_labels_io-0.2.dev1-py3-none-any.whl
Algorithm Hash digest
SHA256 7f3abf508b0274ee364bf0a0fe1a71c5aeab7619712385d8e4fce1f0f5147132
MD5 d9a86f76a6dee2b239b656ff7b76e742
BLAKE2b-256 e5a84bf5d06cae46de878aac39ad08f4b0d6d0b4685e320a62d5c750baceef72

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page