Skip to content

Commit

Permalink
fix(pm4py): bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
fit-alessandro-berti committed Mar 28, 2024
1 parent e01abbd commit 7060bdd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion examples/stochastic_petri_playout.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ def execute_script():
# eventually, we can use the stochastic Petri net with a specialized algorithm,
# such as the stochastic playout
from pm4py.algo.simulation.playout.petri_net.variants import stochastic_playout
ret_log = stochastic_playout.apply(net, im, fm, parameters={"stochastic_map": smap0})
ret_log = stochastic_playout.apply(net, im, fm, parameters={"smap": smap0})
print(ret_log)


Expand Down
2 changes: 1 addition & 1 deletion pm4py/objects/petri_net/utils/performance_map.py
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ def single_element_statistics(log, net, initial_marking, aligned_traces, variant
parameters = {}

from pm4py.objects.conversion.log import converter as log_converter
log = log_converter.apply(log, variant=log_converter.Variants.TO_EVENT_LOG)
log = log_converter.apply(log, variant=log_converter.Variants.TO_EVENT_LOG, parameters=parameters)

business_hours = parameters["business_hours"] if "business_hours" in parameters else False
business_hours_slots = parameters["business_hour_slots"] if "business_hour_slots" in parameters else constants.DEFAULT_BUSINESS_HOUR_SLOTS
Expand Down

0 comments on commit 7060bdd

Please sign in to comment.