Skip to content

Commit 0a4e39c

Browse files
committed
commenting out creation of new rogans from dynamic model
1 parent 0c52600 commit 0a4e39c

File tree

1 file changed

+17
-17
lines changed

1 file changed

+17
-17
lines changed

deeprootgen/model/root.py

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -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

759759
class RootSystemSimulation:

0 commit comments

Comments
 (0)