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.6.tar.gz (146.5 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.6-py3-none-any.whl (50.7 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for labmate-0.10.6.tar.gz
Algorithm Hash digest
SHA256 fcce2781ffc4ec30697a0778ebc2f56e2b44a711ff5d9bcd29b4301b6fd88623
MD5 9748a1f84f2f016b1ee02f7d11236bd7
BLAKE2b-256 c9d77bb3c15359fa091757a27ece5e01be3e11728a2bbedff54582bf6dd8aff6

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for labmate-0.10.6-py3-none-any.whl
Algorithm Hash digest
SHA256 931a5f0da0fbe95661b744a6a5d9c4c383331290532145f3d50b1852cfa445a7
MD5 1c6f361a47409b933ae7b10e764a0d37
BLAKE2b-256 a31eeade98d210e32853ff631ce87fe675d9fad0afc3297eced4e6dadafb60da

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