Skip to content

Commit

Permalink
Merge pull request #11 from Kogelvis/master
Browse files Browse the repository at this point in the history
Set the solver when barnesHut isn't chosen
  • Loading branch information
boludo00 committed May 23, 2018
2 parents 109c46d + c6ec1af commit b8a16bd
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pyvis/physics.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,12 +97,15 @@ def use_barnes_hut(self, params):

def use_force_atlas_2based(self, params):
self.forceAtlas2Based = self.forceAtlas2Based(params)
self.solver = 'forceAtlas2Based'

def use_repulsion(self, params):
self.repulsion = self.Repulsion(params)
self.solver = 'repulsion'

def use_hrepulsion(self, params):
self.hierarchicalRepulsion = self.hierarchicalRepulsion(params)
self.solver = 'hierarchicalRepulsion'

def toggle_stabilization(self, status):
self.stabilization.toggle_stabilization(status)
Expand Down

0 comments on commit b8a16bd

Please sign in to comment.