-
Notifications
You must be signed in to change notification settings - Fork 3
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
Gh 28 force sim tuning #35
Conversation
…raph into gh-28-force-sim-tuning
…raph into gh-28-force-sim-tuning
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a pedantic code review, didn't find anything major, feel free to disregard.
src/ipyforcegraph/forces.py
Outdated
@W.register | ||
class CenterForce(BaseD3Force): | ||
"""The centering force translates nodes uniformly so that the mean position | ||
of all nodes (center of mass if all nodes have equal weight) is at the given |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How does the force know which parameter is the node weight
?
If it's configurable, should we have a TODO to add that as a trait of the behavior?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the centering doesn't actually have mass/weight for the points as far as i know. the doc string is more of an aside to help understand what the force does.
@dfreeman06 have a look at the changes in 8cfa0c1... if that looks fine, let's |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Probably not worth doing another commit, just some minor inconsistencies and missing DOCSTRINGs.
References
Code changes
GraphForcesBehavior
update
toredraw
to avoidWidget
default convenience behaviorblocks
exampleUser-facing changes
Force.ipynb
for examples.Backwards-incompatible changes
redraw
vsupdate
)