Skip to main content

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.

Metadata

Release files for asl5000-utils 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for asl5000-utils 0.1.0
File Size Uploaded Provenance Actions
asl5000-utils-0.1.0.tar.gz 3.1 kB Without provenance Details for asl5000-utils-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for asl5000-utils 0.1.0
File Interpreter ABI Platform Actions
asl5000_utils-0.1.0-py3-none-any.whl Python 3 none any Details for asl5000_utils-0.1.0-py3-none-any.whl

Total release size: 19.0 kB

Release files / asl5000-utils-0.1.0.tar.gz

Download URL asl5000-utils-0.1.0.tar.gz
Size 3.1 kB
Tags Source
SHA-256 checksum
How to use checksums
b8e8dab4a4551db180456dbd2e51c42222664cc9231e0bcec69bdabaa481b621
BLAKE2b-256 checksum
How to use checksums
b46046984c2613f4915c1a494e9c78f67e034aca1e7796f97bd95a87292faf8d
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / asl5000_utils-0.1.0-py3-none-any.whl

Download URL asl5000_utils-0.1.0-py3-none-any.whl
Size 15.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9f1581ae516f6bfae470570aeb5944b2acd850a2565fe7c1d67dd8c20e6682aa
BLAKE2b-256 checksum
How to use checksums
6a5a364c1ca90571fba529aec6b76495d747039fa786efa5ce54b581741b7b57
Upload date
Uploaded using Trusted Publishing?
What is 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

Security for asl5000-utils 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page