Skip to content

Commit

Permalink
Removing simulation results
Browse files Browse the repository at this point in the history
  • Loading branch information
JBris committed Sep 9, 2024
1 parent f3ce1f5 commit 8da8d1b
Showing 1 changed file with 1 addition and 15 deletions.
16 changes: 1 addition & 15 deletions deeprootgen/model/root.py
Original file line number Diff line number Diff line change
Expand Up @@ -889,7 +889,7 @@ def validate(
input_parameters.max_val_attempts,
)

def run(self, input_parameters: RootSimulationModel) -> RootSimulationResultModel:
def run(self, input_parameters: RootSimulationModel) -> None:
"""Run a root system architecture simulation.
Args:
Expand All @@ -900,21 +900,7 @@ def run(self, input_parameters: RootSimulationModel) -> RootSimulationResultMode
dict:
The simulation results.
"""
fig = self.init_fig(input_parameters)
self.init_organs(input_parameters)
self.position_secondary_roots(input_parameters)
self.position_primary_roots(input_parameters)
self.validate(input_parameters, pitch=60)

nodes, edges = self.G.as_dict()
node_df = pd.DataFrame(nodes)

if self.visualise:
fig = self.plot_root_system(fig, node_df)

results = RootSimulationResultModel(
nodes=nodes,
edges=edges,
figure=fig,
)
return results

0 comments on commit 8da8d1b

Please sign in to comment.