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

1.3 race fix #141

Merged
merged 3 commits into from
Oct 7, 2022
Merged

1.3 race fix #141

merged 3 commits into from
Oct 7, 2022

Conversation

ibaldin
Copy link
Contributor

@ibaldin ibaldin commented Oct 6, 2022

This addresses #131 by adding locking around sensitive parts of NetworkXPropertyGraph and NetworkXPropertyGraphDisjoint storage implementations. Both are equivalent and for now the NetworkXPropertyGraph still remains the default for when you create an ExperimentTopology(). If the other backend is desired (there probably isn't really a compelling reason to do it, but..):

from fim.graph.networkx_property_graph_disjoint import NetworkXGraphImporterDisjoint

t = fu.ExperimentTopology(importer=NetworkXGraphImporterDisjoint())

will create an experiment topology with a disjoint back end. As I mentioned - there won't be any performance improvement, I don't think since both the usual and the disjoint back ends have locking now.

This is pushed to PyPi as fim-1.3.3

@ibaldin ibaldin added the 1.3 For release 1.3 label Oct 6, 2022
@ibaldin ibaldin requested a review from kthare10 October 6, 2022 20:56
@ibaldin ibaldin self-assigned this Oct 6, 2022
Copy link
Collaborator

@kthare10 kthare10 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

@ibaldin ibaldin merged commit 9588456 into master Oct 7, 2022
@ibaldin ibaldin deleted the 1.3-race-fix branch October 7, 2022 03:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
1.3 For release 1.3
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants