Skip to content

Commit

Permalink
Fixed issue in simulation.py
Browse files Browse the repository at this point in the history
  • Loading branch information
jfuruness committed Dec 13, 2024
1 parent 9318409 commit d3ace43
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions bgpy/simulation_framework/simulation.py
Original file line number Diff line number Diff line change
Expand Up @@ -287,12 +287,20 @@ def _get_data(self):
if self.parse_cpus == 1:
# Results are a list of lists of metric trackers that we then sum
return sum(
self._get_single_process_results(), start=self.GraphDataAggregatorCls()
self._get_single_process_results(),
start=self.GraphDataAggregatorCls(
graph_categories=self.graph_categories
),
)
# Multiprocess
else:
# Results are a list of lists of metric trackers that we then sum
return sum(self._get_mp_results(), start=self.GraphDataAggregatorCls())
return sum(
self._get_mp_results(),
start=self.GraphDataAggregatorCls(
graph_categories=self.graph_categories
),
)

###########################
# Multiprocessing Methods #
Expand Down

0 comments on commit d3ace43

Please sign in to comment.