Skip to content

Commit

Permalink
Merge pull request #477 from pastra98/stochastic-playout-fix
Browse files Browse the repository at this point in the history
Stochastic playout fix
  • Loading branch information
fit-alessandro-berti authored Mar 28, 2024
2 parents e5a6da2 + 7ce09eb commit e01abbd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ class Parameters(Enum):
NO_TRACES = "noTraces"
MAX_TRACE_LENGTH = "maxTraceLength"
LOG = "log"
STOCHASTIC_MAP = "stochastic_map"
STOCHASTIC_MAP = "smap"
PETRI_SEMANTICS = "petri_semantics"


Expand Down
3 changes: 3 additions & 0 deletions pm4py/objects/petri_net/utils/performance_map.py
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,9 @@ def single_element_statistics(log, net, initial_marking, aligned_traces, variant
if parameters is None:
parameters = {}

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

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
count_once_per_trace = parameters["count_once_per_trace"] if "count_once_per_trace" in parameters else False
Expand Down

0 comments on commit e01abbd

Please sign in to comment.