Add thirty models#13
Conversation
…tch to draw_graph
…arkov-builder into fix_transition_matrix
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #13 +/- ##
==========================================
+ Coverage 89.71% 93.30% +3.59%
==========================================
Files 5 22 +17
Lines 554 837 +283
==========================================
+ Hits 497 781 +284
+ Misses 57 56 -1 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Add sundials install to workflow
MichaelClerx
left a comment
There was a problem hiding this comment.
Hi Joey,
Won't have time for an in-depth review (if you want that) till June or after.
Few small comments. And comparison 2 looks plain wrong?
Would plot an error for these 3 cases too (signal1 - signal2)
…arkov-builder into fix_transition_matrix
|
All 30 models have been added now. Some fixes have been applied to some of the .mmt files where it looks like there were errors |
You'll have to show me those Joey! And do a pull request on the 30 models repo? |
| 'b2': ('p11 * exp(-p12*V)',), | ||
| } | ||
|
|
||
| open_state = 'O' |
|
|
||
| class TestThirtyModels(unittest.TestCase): | ||
|
|
||
| def setUp(self): |
There was a problem hiding this comment.
Did you mean setUpClass here?
The difference is that setUp gets called before every test_x method in your class, while setUpClass is called just once
| self.output_dir = test_output_dir | ||
| logging.info("outputting to " + test_output_dir) | ||
|
|
||
| self.models = [model_00, model_01, model_02, model_03, model_04, |
There was a problem hiding this comment.
[f'model_{i:02}' for i in self.model_indices] ?
Description
Add models 1-11 and 30 from CardiacModelling/hergModels/tree/master/models_myokit. These models are tested by comparing Myokit Simulation output form the original .mmt files with those generated through the Markov_builder.
The newly added models make extensive use of the shared_variables_dict. The behaviour of parameterise_rates was modified to make it more convenient to set these variables to numerical values.
These changes exposed some issues with reversibility checking and transition matrix calculation which have now been fixed.
The new models can be easily generated by users and modified to include drug-trapping or additional states/parameters.
Types of changes
Testing
Documentation checklist