Skip to main content

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

Metadata

Release files for labmate 0.10.9

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for labmate 0.10.9
File Size Uploaded
labmate-0.10.9.tar.gz 151.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for labmate 0.10.9
File Interpreter ABI Platform
labmate-0.10.9-py3-none-any.whl Python 3 none any Details

Total release size: 202.7 kB

Release files / labmate-0.10.9.tar.gz

Download URL labmate-0.10.9.tar.gz
Size 151.3 kB
Tags Source
SHA-256 checksum
How to use checksums
8f9cf283324c19a849b147add6ee9b0c0e32df366d049ef399491b7fc2b0eab8
BLAKE2b-256 checksum
How to use checksums
c63db3d8edc8e48b3ada40950a77676e746462da2f3b7da8a1ed5215b46686cb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.7

Release files / labmate-0.10.9-py3-none-any.whl

Download URL labmate-0.10.9-py3-none-any.whl
Size 51.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
65842826426df1173c532a851e3e9e8628bae57dbcb280ea548ac78790f1980a
BLAKE2b-256 checksum
How to use checksums
3d62ae6b17b9db11d81de55b8825e12524a72e9fec8aef1ea5b34e96504596af
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.7

Release history Release notifications | RSS feed

This release

0.10.9 This release

2 release files

0.10.8

2 release files

0.10.7

2 release files

0.10.5

2 release files

0.10.4

2 release files

0.10.3

2 release files

0.10.2

2 release files

0.9.0

2 release files

0.8.4

2 release files

0.8.2

2 release files

0.8.1

2 release files

0.7.0

2 release files

0.6.1

2 release files

0.6.0

2 release files

0.5.0

2 release files

0.4.0

2 release files

0.3.0

2 release files

0.2.0

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.0

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page