New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

labmate

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

labmate

Data management library to save data and plots to hdf5 files

  • 0.10.4
  • PyPI
  • Socket score

Maintainers
1

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

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc