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

gsd_rdf that can plot all_atoms #11

Merged
merged 68 commits into from
Nov 30, 2021

Conversation

gwenwhite
Copy link
Contributor

@gwenwhite gwenwhite commented Aug 29, 2021

I created a function that will generate the RDF of all atoms (issue #10). Whenever A_name or B_name is set to None, that function is called upon within gsd_rdf.

The only issue is that it takes FOREVER to run with a full trajectory. Any ideas?

…d on in gsd_rdf when A_name or B_name is None.
@jennyfothergill jennyfothergill linked an issue Aug 30, 2021 that may be closed by this pull request
@jennyfothergill
Copy link
Member

jennyfothergill commented Aug 30, 2021

Thanks, @gwenwhite !

The only issue is that it takes FOREVER to run with a full trajectory. Any ideas?

How big (box size, number of particles) is the system in your trajectory and what are you using for r_max? If you're not setting r_max, the default (just under half the box length) could be way too big.

Whenever A_name or B_name is set to None, that function is called upon within gsd_rdf.

I like that your addition is incorporated into gsd_rdf. By separating only the atom selection parts, I think we can reduce the amount of duplicate code in these two functions. (Having less duplicated code is nice when it's time to update a function because there's less to have to check, and the code is a little easier to read.)

EDIT: sorry I meant r_max not r_cut

@jennyfothergill jennyfothergill mentioned this pull request Sep 20, 2021
@jennyfothergill
Copy link
Member

thoughts from group meeting:
Only calculate neighborlist if using exclude bonded
RDF of molecule centers?

Copy link
Member

@jennyfothergill jennyfothergill left a comment

Choose a reason for hiding this comment

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

Getting close! Let me know if you need help with unit tests.

Copy link
Member

@jennyfothergill jennyfothergill left a comment

Choose a reason for hiding this comment

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

A couple minor formatting changes then LGTM!

@jennyfothergill jennyfothergill merged commit 5052ab4 into cmelab:master Nov 30, 2021
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.

Be able to use all types in gsd_rdf
3 participants