GithubHelp home page GithubHelp logo

kyrylo-gr / labmate Goto Github PK

View Code? Open in Web Editor NEW
2.0 4.0 0.0 1.64 MB

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.

Home Page: https://kyrylo-gr.github.io/labmate/

License: GNU Lesser General Public License v3.0

Python 100.00%
data-structures h5py scientific-publications

labmate's Introduction

Labmate. The mate that simplifies data management in your lab.


Python 3.7+ License Code style: black CodeFactor 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.

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.