@@ -737,23 +737,23 @@ def grow(
737737 new_organ = False ,
738738 )
739739
740- mass = self .calculate_mass ()
741- if mass <= self .mass * 1.5 :
742- return
743- self .mass = mass
744- next_order = self .base_node .node_data .order + 1
745- if simulation .organs .get (next_order ) is None :
746- simulation .organs [next_order ] = []
747-
748- child_organ = self .add_child_organ (
749- floor_threshold = input_parameters .floor_threshold ,
750- ceiling_threshold = input_parameters .ceiling_threshold ,
751- )
752- simulation .organs [next_order ].append (child_organ )
753- child_organ .construct_root_from_parent (
754- input_parameters .segments_per_root ,
755- input_parameters .apex_diameter ,
756- )
740+ # mass = self.calculate_mass()
741+ # if mass <= self.mass * 1.5:
742+ # return
743+ # self.mass = mass
744+ # next_order = self.base_node.node_data.order + 1
745+ # if simulation.organs.get(next_order) is None:
746+ # simulation.organs[next_order] = []
747+
748+ # child_organ = self.add_child_organ(
749+ # floor_threshold=input_parameters.floor_threshold,
750+ # ceiling_threshold=input_parameters.ceiling_threshold,
751+ # )
752+ # simulation.organs[next_order].append(child_organ)
753+ # child_organ.construct_root_from_parent(
754+ # input_parameters.segments_per_root,
755+ # input_parameters.apex_diameter,
756+ # )
757757
758758
759759class RootSystemSimulation :
0 commit comments