Skip to main content

A toolbox to extract data from the ASL5000

Project description

PyPI version

asl-utils

A bunch of functions to extract data from the ASL 5000.

What's the ASL?

The ASL 5000™ is a breathing simulator capable of simulating a wide range of patients, produced by IngMar Medical©. It is mainly used for educational purpose, developing products and testing ventilators. Check the IngMar Medical website for more information.

Install

The ASL5000 utils can be installed using the pip package manager:

pip install asl5000-utils

Usage

Let's our environment be:

./
    data/
        simulation.rwb
        simulation.avb
        simulation.brb
    main.py

main.py

import asl5000_utils as asl
import matplotlib.pyplot as plt

labels, array = asl.read_rwb("./data/simulation.rwb")
print(labels)
# ['Time (sec)', 'Airway Pressure (cmH2O)', 'Muscle Pressure (cmH2O)', 'Tracheal Pressure (cmH2O)', 'Chamber 1 Volume (L)', 'Chamber 2 Volume (L)', 'Total Volume (L)', 'Chamber 1 Pressure (cmH2O)', 'Chamber 2 Pressure (cmH2O)', 'Breath File Number (#)', 'Aux 1 (V)', 'Aux 2 (V)', 'Oxygen Sensor (V)']
time = array[0]
time_label = labels[0]
curves = [1, 6, 2]  # Paw, Volume, Pmus

fig, ax = plt.subplots(len(curves), 1, sharex=True)
plt.title("Example: visualizing the rwb data using matplotlib")
for i, index in enumerate(curves):
    ax[i].plot(time, array[index])
    ax[i].set_ylabel(labels[index])
ax[-1].set_xlabel(time_label)

for a in ax:
    a.grid(linestyle="dotted")
plt.show()

Graph_RWB

In the same way, you can use asl.read_avb or asl.read_brb to read data/simulation.avb or data/simulation.brb.

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

asl5000-utils-0.1.0.tar.gz (3.1 kB view details)

Uploaded Source

Built Distribution

asl5000_utils-0.1.0-py3-none-any.whl (15.9 kB view details)

Uploaded Python 3

File details

Details for the file asl5000-utils-0.1.0.tar.gz.

File metadata

  • Download URL: asl5000-utils-0.1.0.tar.gz
  • Upload date:
  • Size: 3.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.38.0 CPython/3.6.6

File hashes

Hashes for asl5000-utils-0.1.0.tar.gz
Algorithm Hash digest
SHA256 b8e8dab4a4551db180456dbd2e51c42222664cc9231e0bcec69bdabaa481b621
MD5 5939c59a02faf2875dba694f0659ff85
BLAKE2b-256 b46046984c2613f4915c1a494e9c78f67e034aca1e7796f97bd95a87292faf8d

See more details on using hashes here.

File details

Details for the file asl5000_utils-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: asl5000_utils-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 15.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.38.0 CPython/3.6.6

File hashes

Hashes for asl5000_utils-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9f1581ae516f6bfae470570aeb5944b2acd850a2565fe7c1d67dd8c20e6682aa
MD5 681c98d98999d241a50c22d42efdf23e
BLAKE2b-256 6a5a364c1ca90571fba529aec6b76495d747039fa786efa5ce54b581741b7b57

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