-
Notifications
You must be signed in to change notification settings - Fork 22
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
added different particle types exclusive interactions to md #68
Conversation
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.
Some minor comments.
@@ -7,7 +7,7 @@ | |||
"outputs": [], | |||
"source": [ | |||
"import warnings\n", | |||
"from pylj import md, sample\n", | |||
"from pylj import md, sample, pairwise\n", |
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.
Why are you importing pairwise
here?
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.
left in accidentally after tests, now removed
particles["yacceleration"][i] += second_law(f[k], m, dy[k], dr[k]) | ||
particles["xacceleration"][j] -= second_law(f[k], m, dx[k], dr[k]) | ||
particles["yacceleration"][j] -= second_law(f[k], m, dy[k], dr[k]) | ||
particles["xacceleration"][i] += second_law(f[k], m, dx[k], dr[k]) if f[k]!=0 else 0 |
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.
Can you put this through a linter? It looks ugly just now...
pylj/pairwise.py
Outdated
@@ -171,54 +187,15 @@ def lennard_jones_force(A, B, dr): | |||
float: | |||
The force between the two particles. | |||
""" | |||
print( | |||
xacceleration( |
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.
xacceleration
?
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.
mistakenly changed, put back to print now
We aspire to deal with all pull requests in a timely manner. Please be patient.
Ideally pull requests will respect the underlying intrastructure of pylj and agree with PEP8, etc. However, please do not let this put novice programmers off contributing.