Skip to main content

Python-based data acquisition

Project description

PyAcquisition

pyacquisition is a powerful Python package designed to simplify the process of recording scientific data and controlling laboratory instruments. It abstracts away the complexities of instrument communication, task scheduling (both concurrent and sequential), data recording, and logging, allowing you to focus on the science. Whether you're managing a single instrument or orchestrating a complex experimental workflow, pyacquisition provides a framework that simplifies the process dramatically.

Check out the installation and getting started pages to get going.

Objectives

Be an 'all-python' solution for interfacing with instruments and automating experimental procedures. Python has become the first choice of many for data analysis and scripting. We don't want to have to learn a second language just for interfacing with hardware or generating a GUI. You need only use python (and possibly a .toml config file).

Be up and running in minutes, not hours. pyacquisition is designed to be simple and 'batteries-included'. We want to absolutely minimize your development time in all major use-cases.

Be 'one-size-fits-most'. There will inevitably be cases that are not well suited to the workflow offered by pyacquisition, but it is hoped that we can help in the majority of instances. We've tried to design for maximum flexibility whilst keeping the API reasonably simple.

Forget the GUI. User interfaces are difficult and time consuming. Writing a robust GUI in Qt may well take longer than writing the rest of your experiment and analysis code combined. pyacquisition generates the entire UI programmatically.

Offer minimal barrier to entry for those who are not advanced python users. Whilst it will be helpful to understand the basics of object oriented and asynchronous programming, getting going with pyacquisition is as simple as composing a .toml configuration file and running a two-line script. Adding custom functionality can mostly be accomplished by following some worked examples in most cases.

A Short Example

A short configuration file interfacing with a Stanford Research Instruments SR 830 lock-in amplifier:

[experiment]
root_path = "C://data"

[data]
path = "my_data_folder"

[instruments]
clock = {instrument = "Clock"}
lockin = {instrument = "SR_830", adapter = "pyvisa", resource = "GPIB0:7:INSTR"}

[measurements]
time = {instrument = "clock", method = "timestamp_ms"}
voltage = {instrument = "lockin", method = "get_x"}

A short script running the experiment from the configuration file:

from pyacquisition import Experiment

my_experiment = Experiment.from_config('my_configuration_file.toml')
my_experiment.run()

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pyacquisition-0.1.9.tar.gz (257.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pyacquisition-0.1.9-py3-none-any.whl (66.8 kB view details)

Uploaded Python 3

File details

Details for the file pyacquisition-0.1.9.tar.gz.

File metadata

  • Download URL: pyacquisition-0.1.9.tar.gz
  • Upload date:
  • Size: 257.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.7.5

File hashes

Hashes for pyacquisition-0.1.9.tar.gz
Algorithm Hash digest
SHA256 9f05c3cffbc4179563e033346f233e557d52c170ae0b7ef3eacb346f5cf6df8d
MD5 2e398e32eee3a9eab8dde433b83d1051
BLAKE2b-256 9b86c1a08e96f313c6eadbc667d2b90f37c2409c44d02d3dabdc1b70bc383925

See more details on using hashes here.

File details

Details for the file pyacquisition-0.1.9-py3-none-any.whl.

File metadata

File hashes

Hashes for pyacquisition-0.1.9-py3-none-any.whl
Algorithm Hash digest
SHA256 33375000825e0a2f686284b8c40c05ddc64ed5c5ecc4dd5920401b30cf0c6a46
MD5 1ef5097b613bc0d94d355f3e2f8a656d
BLAKE2b-256 a974b5b5ba2a0c3b5115142b38db208572602e17c43770b94227b741212560a6

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page