Skip to main content

Functions for generating compressor monitoring models

Project description

compressor-models

Monitoring models for compressors. Get time series data and compressor curves from SPD.

Install

Install from pypi using pip install compressor-models.

Usage

From SPD database

from compressor_models import CompressorPerformance, CurveFile

print(CompressorPerformance.models_in_database())

cmp = CompressorPerformance.from_database(functional_location="1130-KA101")
cf = CurveFile.from_Compressor(cmp)

print(cmp.get_yaml())
print(cf.to_json())

Create model from JSON curves

from compressor_models import CompressorPerformance

cmp = CompressorPerformance.get_empty(functional_location="TEST-KA101")
cmp.add_curves(curve_file="examples/compressor_curves.json")

print(cmp.get_yaml())

Develop / testing

Clone from github and install using uv sync.

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

compressor_models-0.4.2.tar.gz (6.6 kB view details)

Uploaded Source

Built Distribution

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

compressor_models-0.4.2-py3-none-any.whl (8.4 kB view details)

Uploaded Python 3

File details

Details for the file compressor_models-0.4.2.tar.gz.

File metadata

  • Download URL: compressor_models-0.4.2.tar.gz
  • Upload date:
  • Size: 6.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.4.1 CPython/3.14.5 Darwin/25.5.0

File hashes

Hashes for compressor_models-0.4.2.tar.gz
Algorithm Hash digest
SHA256 6189bb8edbd83c34f6fa43f791e8cc808810c9901c62377201132d204626d1c5
MD5 8d3e4d0bae30a9c9dcb9d992caaf086a
BLAKE2b-256 75a4f394102dd8cbf7322e29b04bbc785a45cf0e39f1c150a94b4f258c8f5e7a

See more details on using hashes here.

File details

Details for the file compressor_models-0.4.2-py3-none-any.whl.

File metadata

  • Download URL: compressor_models-0.4.2-py3-none-any.whl
  • Upload date:
  • Size: 8.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.4.1 CPython/3.14.5 Darwin/25.5.0

File hashes

Hashes for compressor_models-0.4.2-py3-none-any.whl
Algorithm Hash digest
SHA256 f24e123ec286046d2e3639052ba48809a01c4f44ac9ee9874c53f1209ddf6418
MD5 cfbc6daa937853fad3942a846a684280
BLAKE2b-256 b3e3de529c261a87255bbd17602468699f3448b7df48608a5c10785499fc1d40

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