Skip to content

Commit fa5d6dc

Browse files
committed
python: Switched to properly execute the simulations without jumping directly to run_protected().
Now that the logging works correctly for nested tasks, we can safely do this without confusing the user with the mixed up output.
1 parent 99199ca commit fa5d6dc

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

python/inet/test/chart.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ def count_tasks(self):
125125
return super().count_tasks() + self.multiple_simulation_tasks.count_tasks()
126126

127127
def run_protected(self, **kwargs):
128-
multiple_simulation_task_results = self.multiple_simulation_tasks.run_protected(**kwargs)
128+
multiple_simulation_task_results = self.multiple_simulation_tasks.run(**kwargs)
129129
# avoid reusing the processes from the process pool because matplotlib can generate different images due to tight layout
130130
return super().run_protected(**kwargs, maxtasksperchild=1)
131131

@@ -243,7 +243,7 @@ def count_tasks(self):
243243
return super().count_tasks() + self.multiple_simulation_tasks.count_tasks()
244244

245245
def run_protected(self, **kwargs):
246-
multiple_simulation_task_results = self.multiple_simulation_tasks.run_protected(**kwargs)
246+
multiple_simulation_task_results = self.multiple_simulation_tasks.run(**kwargs)
247247
# avoid reusing the processes from the process pool because matplotlib can generate different images due to tight layout
248248
return super().run_protected(**kwargs, maxtasksperchild=1)
249249

0 commit comments

Comments
 (0)