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

added different particle types exclusive interactions to md #68

Merged
merged 18 commits into from
Jul 30, 2024

Conversation

maximillian-dolan
Copy link
Contributor

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.

Copy link
Owner

@arm61 arm61 left a 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",
Copy link
Owner

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?

Copy link
Contributor Author

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
Copy link
Owner

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(
Copy link
Owner

Choose a reason for hiding this comment

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

xacceleration?

Copy link
Contributor Author

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

@arm61 arm61 merged commit 3387fea into arm61:master Jul 30, 2024
4 checks passed
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

Successfully merging this pull request may close these issues.

2 participants