Skip to main content

A python API to send commands to the LTA (Low-Threshold Acquisition) board.

Project description

libLTA v3.1

This library provides a python API to send commands to the LTA board. For example:

from liblta import pyLTA

# Initialize the object
lta = pyLTA()

# Connect to the board
lta.connect('myLTA', host_ip='192.168.133.100', 
              board_ip='192.168.133.7', board_port=2001)

# Request telemetry values
lta.send('get telemetry all')

Features

  • All-in-one: does not require a 'daemon' to communicate with board.
  • Sequencer is saved with a hashed name so that it can be recovered at any time.
  • Binary file decoder also implemented in Python (and is efficient!).
  • Decoding can be made offline (all image metadata is saved).
  • No CFITSIO or ROOT needed!
  • [Legacy] Compatible with LTA daemon (https://github.com/sensei-skipper/ltaDaemon_public).

Installation

Pre-requisites

These packages are required for libLTA to work. Most of the times their installation is as easy as running:
python3 -m pip install [package]
or:
conda install [package] if you are a conda user.

Installing libLTA

First, clone this repo to your machine:

git clone https://gitlab.com/nicolaseavalos/liblta.git

Then install this library in your current Python environment:

cd liblta
python3 -m pip install -e .

The -e flag makes the installation editable, so to update the library to a newer version you can just cd to the repo and git pull.

Usage

Please refer to the basic usage file for an example of the most commonly used functions. Complete documentation can be found here.

License

This project is licensed under the MIT license.

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

liblta-3.1.1.tar.gz (26.6 kB view details)

Uploaded Source

Built Distribution

liblta-3.1.1-py3-none-any.whl (28.1 kB view details)

Uploaded Python 3

File details

Details for the file liblta-3.1.1.tar.gz.

File metadata

  • Download URL: liblta-3.1.1.tar.gz
  • Upload date:
  • Size: 26.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.0 CPython/3.12.3

File hashes

Hashes for liblta-3.1.1.tar.gz
Algorithm Hash digest
SHA256 f1230d91e8319c99ee87d3975b4a5f3e482a8db3d3ddf6e3b2eaae66cbe0274a
MD5 dfe54a60b731edab2d4d201d77dd7736
BLAKE2b-256 6b2dbf93b8ba3b27e67dc5cd46e0643fde124ac42e9ce7b784deffac15fc5b53

See more details on using hashes here.

File details

Details for the file liblta-3.1.1-py3-none-any.whl.

File metadata

  • Download URL: liblta-3.1.1-py3-none-any.whl
  • Upload date:
  • Size: 28.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.0 CPython/3.12.3

File hashes

Hashes for liblta-3.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 d35f422a1695cb90d77cbc78928ec93358dfea163761357baf1ce8e77da7e535
MD5 e366677a2fd7246e9bb70323d7fe2299
BLAKE2b-256 36545a014a59af33940aa51a61b8ed204e3802b80ffc017e6bd1117928b15213

See more details on using hashes here.

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