File tree Expand file tree Collapse file tree 3 files changed +8
-3
lines changed Expand file tree Collapse file tree 3 files changed +8
-3
lines changed Original file line number Diff line number Diff line change 1+ Missing conduction system for biventricle models
Original file line number Diff line number Diff line change @@ -271,15 +271,15 @@ def define_fascile_bundle_end_node(
271271
272272
273273def define_full_conduction_system (
274- model : models .FullHeart | models .FourChamber ,
274+ model : models .FullHeart | models .FourChamber | models . BiVentricle ,
275275 purkinje_folder : str ,
276276 landmarks : LandMarks = None ,
277277) -> tuple [list [ConductionPath ], LandMarks ]:
278278 """Define the full conduction system.
279279
280280 Parameters
281281 ----------
282- model : models.FullHeart | models.FourChamber
282+ model : models.FullHeart | models.FourChamber | models.BiVentricle
283283 Heart model.
284284 purkinje_folder : str
285285 Folder with LS-DYNA's Purkinje generation.
@@ -310,6 +310,10 @@ def define_full_conduction_system(
310310 model = model ,
311311 )
312312
313+ if isinstance (model , models .BiVentricle ):
314+ return [left_purkinje , right_purkinje ], landmarks
315+
316+ # Define other parts of the conduction system
313317 sa = define_sino_atrial_node (model , landmarks )
314318 av = define_atrio_ventricular_node (model , landmarks )
315319
Original file line number Diff line number Diff line change @@ -516,7 +516,7 @@ def compute_purkinje(self):
516516
517517 def compute_conduction_system (self ):
518518 """Compute the conduction system."""
519- if isinstance (self .model , models .FourChamber ):
519+ if isinstance (self .model , ( models .FourChamber , models . BiVentricle ) ):
520520 # TODO: refinement is not correctly used
521521 # beam_length = self.settings.purkinje.edgelen.m
522522
You can’t perform that action at this time.
0 commit comments