Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Visualize arc-weights smaller than one in PetriNet #303

Closed
LordHeImchen opened this issue Dec 22, 2021 · 2 comments
Closed

Visualize arc-weights smaller than one in PetriNet #303

LordHeImchen opened this issue Dec 22, 2021 · 2 comments

Comments

@LordHeImchen
Copy link

LordHeImchen commented Dec 22, 2021

Hey guys,
first of all, big up this library! It's really neat.
Currently I am using pm4py to build a PetriNet from a custom graph-dictionary and simulate it to create event logs.
I am visualizing it using gviz = pn_visualizer.apply(net, initial_marking) and pn_visualizer.view(gviz), where pn_visualizer is obtained by calling from pm4py.visualization.petri_net import visualizer.

Unfortunately, my petrinet from the graph-dictionary has probabilities instead of weights for the arcs, so i kind of refactored your code a bit to suit my needs. However, the pn_visualizer seems to only print labels on arcs when the weight is bigger than "1". Since my probabilities are 1 or below, they are not visualized.
Is there any way to tell the function to also show arc-weights as labels which are below one?
Or is there any other way to achieve this?

Any help is appreciated!
Thanks in advance

@fit-alessandro-berti
Copy link
Contributor

Dear LordHelmchen,

Thanks for signaling. We'll tackle the issue in one of the upcoming releases.

Have a nice day

@fit-sebastiaan-van-zelst
Copy link
Contributor

This issue was resolved in pm4py 2.2.18 (https://github.com/pm4py/pm4py-core/releases/tag/2.2.18)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants