Labmate. The mate that simplifies data management in your lab.
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)
| File | Size | Uploaded | |
|---|---|---|---|
| labmate-0.10.9.tar.gz | 151.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| 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
|