Commit 9c50325
committed
fix: resolve broken imports in cardiac_pm.py (#290)
cardiac_pm.py in humanc/ and tools/ (symlinked by linktest/) imported
pulsatile_model_functions and healthy_params directly, but these modules
only exist inside the cardiac_pm.dir/ subdirectories.
Add sys.path manipulation to insert the cardiac_pm.dir/ directory into
the import path so the modules are found both during development and
after deployment via mkconcore.py.1 parent fb19116 commit 9c50325
2 files changed
Lines changed: 9 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
2 | 6 | | |
3 | 7 | | |
4 | 8 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
2 | 7 | | |
3 | 8 | | |
4 | 9 | | |
5 | | - | |
6 | 10 | | |
7 | 11 | | |
8 | 12 | | |
| |||
0 commit comments