Lung simulation
Project description
lung
toy^3 lung
Documentation
Getting started
- Highly recommended, but optional. Use conda
conda env create -f environment.yml
- Install the
lung
package
pip install -e .
- 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
- Suppose our name is
NewController
- Create file in
lung/controller/_new_controller.py
- Stub of the controller:
from lung.controllers.core import Controller
class NewController(Controller):
def __init__(self, **kwargs):
pass
def feed(self, err, t):
pass
- Add
NewController
tolung/controllers/__init__.py
- Import using
from lung.controllers import NewController
How to add an environment
- Same idea as above. You've got this, Cyril! (Just watch out for
self.time
...).
Project details
Release history Release notifications | RSS feed
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.0.tar.gz
(8.6 kB
view hashes)