Skip to main content

Unpack and calibrate binary data from a WetLabs ACS

Project description

pyACS

Python package to unpack and calibrate binary data from a WetLabs ACS

The ACS module can be loaded and used in a script or can be used as it stands to convert binary files recorded by Compass Software to CSV files.

Installation

The package runs with python 3 only. Install it with PyPI using the command:

pip install pyACS

Or from the sources available on GitHub repository. The distribution archive can be generated using:

python3 setup.py sdist bdist_wheel

Convert binary to CSV files

The package can be used as it stands from the command line to convert binary files to

python -m pyACS [-h] [-v] [--version] [--auxiliaries] dvc src dst

positional arguments: dvc Device file. src Source file to decode and calibrate. dst Destination file of decoded and calibrated data.

optional arguments: -h, --help show this help message and exit -v, --verbose Enable verbosity. --version Prints version information. --auxiliaries Output auxiliary data (internal and external temperatures).

Embed in other Software

The class ACS provides key methods to handle the binary ACS data

  • read_device_file: Parse device file to be able to unpack and calibrate binary frame
  • unpack_frame: Unpack/Decode binary frame into named tuple FrameContainer
  • calibrate_frame: Convert engineering units (counts) into scientific units (1/m for a and c)

The class BinReader helps to separate individual frames looking the registration bytes b'\xff\x00\xff\x00'. An example of usage of that class is ConvertBinToCSV which converts a binary file recorded with Compass into a CSV file.

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

pyACS-0.0.2.tar.gz (11.3 kB view hashes)

Uploaded Source

Built Distribution

pyACS-0.0.2-py3-none-any.whl (12.2 kB view hashes)

Uploaded Python 3

Supported by

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