Data management library to save data and plots to hdf5 files
Project description
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file labmate-0.10.2.tar.gz
.
File metadata
- Download URL: labmate-0.10.2.tar.gz
- Upload date:
- Size: 205.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 34c23408282a7e0eab0e21678baccae086b236ee3c36fd80ce376b03ba5180bb |
|
MD5 | 0f79491a2f92525a77a75c6aa8af7d5a |
|
BLAKE2b-256 | 0bdc3e8aa89857daf392d8e8cea6b5d0bf6081aeb096e336d0710b2c89669026 |
File details
Details for the file labmate-0.10.2-py3-none-any.whl
.
File metadata
- Download URL: labmate-0.10.2-py3-none-any.whl
- Upload date:
- Size: 48.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 11ec8a9698f2a1d0859b7a7a5fd6a7abc4d0720d20d82a101b5ffd640caec52c |
|
MD5 | fee18c8050a63debd0d01d08658fba87 |
|
BLAKE2b-256 | 7777d7e0a65b5f81b88f6e6d78bdbd40762e15d375bdbdb1d6bb0a2820b818b2 |