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.8.tar.gz (147.1 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.8-py3-none-any.whl (51.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: labmate-0.10.8.tar.gz
  • Upload date:
  • Size: 147.1 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.8.tar.gz
Algorithm Hash digest
SHA256 ac378a87bc7c414f08365275fb1087ba03571cf7e38329ad84ca9b68a5945ea7
MD5 930d6f77c8138512857214c5a875a500
BLAKE2b-256 494f1bc209446a0c9a3977342f5d4962adc288c375bdd86874e17872593d108f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: labmate-0.10.8-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.8-py3-none-any.whl
Algorithm Hash digest
SHA256 408fac41c753e6fa2675e7877f826b68f4093684138281a3d2233da9e5637dc1
MD5 182d6a9a88ad0ff7033e9d25610e10d1
BLAKE2b-256 f57e78f4f6817dac922e5b6f4ba4a8011329a18ec4b8c0af9ba4fe8e84d8638f

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