Skip to main content

A Python API for the pressure gauges in the Matter Lab.

Project description

Matter Lab Pressure Gauges

matterlab_pressure_gauges provides Python drivers for pressure gauges used in Matter Lab automation workflows.

The package currently includes:

  • Gauge: abstract base class for pressure gauge interfaces
  • InficonPCGGauge: serial driver for Inficon PCG gauges

Installation

Use the matterlab conda environment and install the package in editable mode during development:

pip install -e .[dev]

The package depends on matterlab_serial_device for serial communication.

Quick Start

from matterlab_pressure_gauges import InficonPCGGauge

gauge = InficonPCGGauge(com_port="COM4", address=1)
print(gauge.pressure, gauge.unit)
print(gauge.error)
print(gauge.product_name)

Testing

Simulation tests are the default and are the only tests intended for CI enforcement.

One-click local sim run:

python examples/test_sim.py

Direct pytest run:

pytest

Real hardware tests are present for manual validation but are skipped unless explicitly enabled.

Run real tests with explicit hardware parameters:

pytest tests/test_inficon_gauge_real.py --run-real --com-port COM4 --address 1

You can also provide the settings through environment variables:

set PRESSURE_GAUGE_COM_PORT=COM4
set PRESSURE_GAUGE_ADDRESS=1
pytest tests/test_inficon_gauge_real.py --run-real

Examples

Additional examples live in examples/README.md:

  • examples/test_sim.py for the sim suite
  • examples/real_devices.py for readable hardware usage examples

Development Notes

  • Source code lives under src/
  • Pytest uses src as the import root
  • Hardware-backed tests are marked with @pytest.mark.real
  • Generated coverage, build, and cache artifacts are ignored

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

matterlab_pressure_gauges-1.1.0.tar.gz (10.5 kB view details)

Uploaded Source

Built Distribution

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

matterlab_pressure_gauges-1.1.0-py3-none-any.whl (8.9 kB view details)

Uploaded Python 3

File details

Details for the file matterlab_pressure_gauges-1.1.0.tar.gz.

File metadata

File hashes

Hashes for matterlab_pressure_gauges-1.1.0.tar.gz
Algorithm Hash digest
SHA256 b8f07ad5fa21c2bd43f8ed080c9d8072766a8bad44d73782e4f1e79444eff211
MD5 cd3243e54cbf00fe54e13b5f35d2e339
BLAKE2b-256 0d8a4e860d36154522f83a19d2374df60fc89125671c6ea43ab67acbcb0dbdc2

See more details on using hashes here.

File details

Details for the file matterlab_pressure_gauges-1.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for matterlab_pressure_gauges-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 eae0cc9287df95e3adebffbb293788a09b413e57e2edbf2946fb2d8c335c7a3f
MD5 3a90168cafe9025dfe29ca8ad759a9cd
BLAKE2b-256 ddb644debdad3f3373b785144a9e09f1f3b87baf77f738192a8ed1c7f8ad9ac0

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