Skip to main content

Data management library to save data and plots to hdf5 files

Project description

Labmate. The mate that simplifies data management in your lab.


Pypi Python 3.7+ License Code style: black CodeFactor Codecov Download Stats Documentation

This library facilitates the clear division of data acquisition from analysis. It provides robust tools for efficient data management and includes features to ensure a further use of the saved data.

This library is based on the other library dh5 which is a wrapper around the h5py library.

Install

pip install labmate

Installation in dev mode

pip install -e .[dev] or python setup.py develop

Usage

Setup:

from labmate.acquisition_notebook import AcquisitionAnalysisManager
aqm = AcquisitionAnalysisManager("path/to/database")

Example of an acquisition cell. The variables x and y, along with the acquisition cell code and additional parameters that can be set, will be saved inside an h5 file.

aqm.acquisition_cell("your_experiment_name")
...
aqm.save_acquisition(x=x, y=y)

Example of an analysis cell. You cannot directly use the x or y variables, as you would not be able to open them afterwards. Therefore, whenever you use variables inside an analysis cell, retrieve them from aqm.data.

aqm.analysis_cell()

data = aqm.data
fig, ax = plt.subplots(1, 1)
ax.plot(data.x, data.y)

aqm.save_fig(fig)

You can find this example here.

More usage

To see more look at the documentation

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

labmate-0.10.7.tar.gz (147.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

labmate-0.10.7-py3-none-any.whl (51.2 kB view details)

Uploaded Python 3

File details

Details for the file labmate-0.10.7.tar.gz.

File metadata

  • Download URL: labmate-0.10.7.tar.gz
  • Upload date:
  • Size: 147.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.3

File hashes

Hashes for labmate-0.10.7.tar.gz
Algorithm Hash digest
SHA256 146d2d822ed7b390c5c2f2bf75cfd37ead2f55d6d4629c920d30d7709b1878a2
MD5 92fcf486e352812e1ee65f63461da7b1
BLAKE2b-256 a9057da3479aaf4714e338be5bf4281f4b6277df8cf000dbfc02e08927e81042

See more details on using hashes here.

File details

Details for the file labmate-0.10.7-py3-none-any.whl.

File metadata

  • Download URL: labmate-0.10.7-py3-none-any.whl
  • Upload date:
  • Size: 51.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.3

File hashes

Hashes for labmate-0.10.7-py3-none-any.whl
Algorithm Hash digest
SHA256 cd8e23c9051903c065f34b20fa4896136dcf30f27fd62447704f86ab883da005
MD5 43c16ac72818c684f88662465487a247
BLAKE2b-256 3d9251012b82666c7e05bc025a97785ab181c4acee4612b7b32e0f6c84bb3879

See more details on using hashes here.

Supported by

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