Skip to main content

Lung simulation

Project description

lung

toy^3 lung

Documentation

Getting started

  1. Highly recommended, but optional. Use conda
conda env create -f environment.yml
  1. Install the lung package
pip install -e .
  1. Start jupyter from the root repository directory
jupyter notebook

How to run code

Take a look at notebooks/Delay Lung model.ipynb.

new_controller = NewController(waveform=BreathWaveform())

How to add a controller

  1. Suppose our name is NewController
  2. Create file in lung/controller/_new_controller.py
  3. Stub of the controller:
from lung.controllers.core import Controller

class NewController(Controller):
    def __init__(self, **kwargs):
        pass

    def feed(self, err, t):
        pass
  1. Add NewController to lung/controllers/__init__.py
  2. Import using from lung.controllers import NewController

How to add an environment

  1. Same idea as above. You've got this, Cyril! (Just watch out for self.time...).

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

lung-0.1.4.tar.gz (11.3 kB view hashes)

Uploaded Source

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