Skip to content

Commit cd3bb32

Browse files
feat(pm4py): preparing for release 2.2.28
2 parents 235c092 + 4daf361 commit cd3bb32

File tree

8 files changed

+72
-8
lines changed

8 files changed

+72
-8
lines changed

CHANGELOG.md

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,28 @@
11
# Changelog of pm4py
22

3-
## pm4py 2.2.27 (2022.08.XX)
3+
## pm4py 2.2.28 (2022.09.02)
4+
5+
### Added
6+
7+
### Changed
8+
9+
### Deprecated
10+
11+
### Fixed
12+
* 1343827595d4cfd9f6b5743bb378443079ce281c
13+
* fixed sorting in DFG filtering
14+
* acea877fd9000c8e6a62424c15d4a29c33d08eba
15+
* fixed bug of LocallyLinearEmbedding(s) with newer version of Scipy
16+
* 55acf9c08d25886f384bb2e993d653af90874f3b
17+
* fixed construction of tangible reachability graph
18+
19+
### Removed
20+
21+
### Other
22+
23+
---
24+
25+
## pm4py 2.2.27 (2022.08.19)
426

527
### Added
628
* 58e266610e82cfcc41868313f7b9ccfd9975d49c
@@ -24,6 +46,8 @@
2446

2547
### Other
2648

49+
---
50+
2751
## pm4py 2.2.26 (2022.08.05)
2852

2953
### Added

docs/source/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
# The short X.Y version
2727
version = '2.2'
2828
# The full version, including alpha/beta/rc tags
29-
release = '2.2.27'
29+
release = '2.2.28'
3030

3131
# -- General configuration ---------------------------------------------------
3232

pm4py/algo/filtering/dfg/dfg_filtering.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ def filter_dfg_on_activities_percentage(dfg0, start_activities0, end_activities0
103103
activities_count = deepcopy(activities_count0)
104104

105105
if len(activities_count) > 1 and len(dfg) > 1:
106-
activities_count_sorted_list = sorted([(x, y) for x, y in activities_count.items()], key=lambda x: x[1],
106+
activities_count_sorted_list = sorted([(x, y) for x, y in activities_count.items()], key=lambda x: (x[1], x[0]),
107107
reverse=True)
108108
# retrieve the minimum list of activities to keep in the graph, according to the percentage
109109
min_set_activities_to_keep = set(
@@ -255,7 +255,7 @@ def filter_dfg_on_paths_percentage(dfg0, start_activities0, end_activities0, act
255255
all_edges = [(x, y) for x, y in dfg.items()] + [((start_node, x), start_activities[x]) for x in
256256
start_activities] + [((x, end_node), end_activities[x]) for x in
257257
end_activities]
258-
all_edges = sorted(all_edges, key=lambda x: x[1], reverse=True)
258+
all_edges = sorted(all_edges, key=lambda x: (x[1], x[0]), reverse=True)
259259
# calculate a set of edges that could be discarded and not
260260
non_discardable_edges = list(
261261
x[0] for x in all_edges[:math.ceil((len(all_edges) - 1) * percentage) + 1])
@@ -339,7 +339,7 @@ def filter_dfg_keep_connected(dfg0, start_activities0, end_activities0, activiti
339339
all_edges = [(x, y) for x, y in dependency.items()] + [((start_node, x), 1.0) for x in
340340
start_activities] + [((x, end_node), 1.0) for x in
341341
end_activities]
342-
all_edges = sorted(all_edges, key=lambda x: x[1], reverse=True)
342+
all_edges = sorted(all_edges, key=lambda x: (x[1], x[0]), reverse=True)
343343
# calculate a set of edges that could be discarded and not
344344
non_discardable_edges = list(x[0] for x in all_edges if x[1] >= threshold)
345345
discardable_edges = list(x[0] for x in all_edges if x[1] < threshold)

pm4py/algo/transformation/log_to_features/util/locally_linear_embedding.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ def apply(log: EventLog, parameters: Optional[Dict[str, Any]] = None) -> Tuple[L
9898
x = [trace[0][timestamp_key] for trace in log]
9999
data, feature_names = log_to_features.apply(log, parameters={"str_ev_attr": [activity_key], "str_evsucc_attr": [activity_key]})
100100

101-
tsne = LocallyLinearEmbedding(n_components=1)
101+
tsne = LocallyLinearEmbedding(n_components=1, eigen_solver='dense')
102102
data = tsne.fit_transform(data)
103103
data = np.ndarray.flatten(data)
104104

pm4py/meta.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
along with PM4Py. If not, see <https://www.gnu.org/licenses/>.
1616
'''
1717
__name__ = 'pm4py'
18-
VERSION = '2.2.27'
18+
VERSION = '2.2.28'
1919
__version__ = VERSION
2020
__doc__ = 'Process Mining for Python (PM4Py)'
2121
__author__ = 'Fraunhofer Institute for Applied Technology'

pm4py/objects/stochastic_petri/tangible_reachability.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ def get_tangible_reachability_from_net_im_sinfo(net, im, stochastic_info, parame
8080
"""
8181
if parameters is None:
8282
parameters = {}
83-
reachab_graph = construct_reachability_graph(net, im)
83+
reachab_graph = construct_reachability_graph(net, im, use_trans_name=True)
8484
tang_reach_graph = get_tangible_reachability_from_reachability(reachab_graph, stochastic_info)
8585

8686
return reachab_graph, tang_reach_graph

safety_checks/20220819

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
+==============================================================================+
2+
| |
3+
| /$$$$$$ /$$ |
4+
| /$$__ $$ | $$ |
5+
| /$$$$$$$ /$$$$$$ | $$ \__//$$$$$$ /$$$$$$ /$$ /$$ |
6+
| /$$_____/ |____ $$| $$$$ /$$__ $$|_ $$_/ | $$ | $$ |
7+
| | $$$$$$ /$$$$$$$| $$_/ | $$$$$$$$ | $$ | $$ | $$ |
8+
| \____ $$ /$$__ $$| $$ | $$_____/ | $$ /$$| $$ | $$ |
9+
| /$$$$$$$/| $$$$$$$| $$ | $$$$$$$ | $$$$/| $$$$$$$ |
10+
| |_______/ \_______/|__/ \_______/ \___/ \____ $$ |
11+
| /$$ | $$ |
12+
| | $$$$$$/ |
13+
| by pyup.io \______/ |
14+
| |
15+
+==============================================================================+
16+
| REPORT |
17+
| checked 45 packages, using free DB (updated once a month) |
18+
+==============================================================================+
19+
| No known security vulnerabilities found. |
20+
+==============================================================================+

safety_checks/20220901

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
+==============================================================================+
2+
| |
3+
| /$$$$$$ /$$ |
4+
| /$$__ $$ | $$ |
5+
| /$$$$$$$ /$$$$$$ | $$ \__//$$$$$$ /$$$$$$ /$$ /$$ |
6+
| /$$_____/ |____ $$| $$$$ /$$__ $$|_ $$_/ | $$ | $$ |
7+
| | $$$$$$ /$$$$$$$| $$_/ | $$$$$$$$ | $$ | $$ | $$ |
8+
| \____ $$ /$$__ $$| $$ | $$_____/ | $$ /$$| $$ | $$ |
9+
| /$$$$$$$/| $$$$$$$| $$ | $$$$$$$ | $$$$/| $$$$$$$ |
10+
| |_______/ \_______/|__/ \_______/ \___/ \____ $$ |
11+
| /$$ | $$ |
12+
| | $$$$$$/ |
13+
| by pyup.io \______/ |
14+
| |
15+
+==============================================================================+
16+
| REPORT |
17+
| checked 45 packages, using free DB (updated once a month) |
18+
+==============================================================================+
19+
| No known security vulnerabilities found. |
20+
+==============================================================================+

0 commit comments

Comments
 (0)