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.10

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.10
File Size Uploaded Provenance Actions
labmate-0.10.10.tar.gz 152.5 kB Without provenance Details for labmate-0.10.10.tar.gz

Built distribution (wheel)

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

Total release size: 203.9 kB

Release files / labmate-0.10.10.tar.gz

Download URL labmate-0.10.10.tar.gz
Size 152.5 kB
Tags Source
SHA-256 checksum
How to use checksums
34000444aac5f157d826a5c704fed6d3e8f7d7764dc9b3c1754b3421371a6654
BLAKE2b-256 checksum
How to use checksums
3e4e219d3658bf5032816f77363c93b97b43ee235da1a3bbb0a3a19ef6282b28
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.15.1

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

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

Security for labmate 0.10.10

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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