Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/hotfixes' into dev
Browse files Browse the repository at this point in the history
  • Loading branch information
fit-alessandro-berti committed Jan 2, 2024
2 parents f5ff50d + 421dfb0 commit ac71ed9
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 8 deletions.
2 changes: 0 additions & 2 deletions pm4py/algo/discovery/powl/inductive/variants/im_tree.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,6 @@ def fall_through(self, obj: T, parameters: Optional[Dict[str, Any]] = None) -> T
def _recurse(self, powl: POWL, objs: List[T], parameters: Optional[Dict[str, Any]] = None):
children = [self.apply(obj, parameters=parameters) for obj in objs]
if isinstance(powl, StrictPartialOrder):
if isinstance(powl, Sequence):
return Sequence(children)
powl_new = StrictPartialOrder(children)
for i, j in combinations(range(len(powl.children)), 2):
if powl.order.is_edge_id(i, j):
Expand Down
4 changes: 2 additions & 2 deletions pm4py/objects/powl/obj.py
Original file line number Diff line number Diff line change
Expand Up @@ -336,9 +336,9 @@ def merge_with_children(child0, child1):
s_child = child.simplify()
if isinstance(s_child, OperatorPOWL) and s_child.operator is Operator.XOR:
for node in s_child.children:
new_children.append(node)
new_children.append(node.simplify())
else:
new_children.append(s_child)
return OperatorPOWL(Operator.XOR, [child for child in new_children])
else:
return OperatorPOWL(self.operator, [child for child in self.children])
return OperatorPOWL(self.operator, [child.simplify() for child in self.children])
8 changes: 4 additions & 4 deletions requirements_stable.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,17 @@ colorama==0.4.6
contourpy==1.2.0
cycler==0.12.1
deprecation==2.1.0
fonttools==4.46.0
fonttools==4.47.0
graphviz==0.20.1
intervaltree==3.1.0
kiwisolver==1.4.5
lxml==4.9.3
lxml==5.0.0
matplotlib==3.8.2
networkx==3.2.1
numpy==1.26.2
packaging==23.2
pandas==2.1.4
Pillow==10.1.0
Pillow==10.2.0
pydotplus==2.0.2
pyparsing==3.1.1
python-dateutil==2.8.2
Expand All @@ -22,4 +22,4 @@ six==1.16.0
sortedcontainers==2.4.0
StringDist==1.0.9
tqdm==4.66.1
tzdata==2023.3
tzdata==2023.4

0 comments on commit ac71ed9

Please sign in to comment.