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

Add utilities to calculate Order Parameter #16

Merged
merged 19 commits into from
Oct 19, 2021

Conversation

jennyfothergill
Copy link
Member

@jennyfothergill jennyfothergill commented Oct 6, 2021

My goal is to calculate the order parameter shown in doi:10.3390/polym10121305.
I will reference Evan's code where possible.
The goal is to have a function which can calculate the clustering based on a distance cutoff and angle cutoff between the plane normal vectors of the chromophores.
Will use GRiTS to get the chromophores.

TODO

  • unit tests

@codecov
Copy link

codecov bot commented Oct 6, 2021

Codecov Report

Merging #16 (ce13fc7) into master (21f91e6) will increase coverage by 0.23%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #16      +/-   ##
==========================================
+ Coverage   99.20%   99.43%   +0.23%     
==========================================
  Files           4        5       +1     
  Lines         125      178      +53     
==========================================
+ Hits          124      177      +53     
  Misses          1        1              
Impacted Files Coverage Δ
cmeutils/geometry.py 100.00% <100.00%> (ø)
cmeutils/gsd_utils.py 100.00% <100.00%> (ø)
cmeutils/structure.py 100.00% <100.00%> (ø)

- get pattern is a little confusing for how it would be used perhaps I
should make it a private function. I plan to add an example of its use
soon.
@jennyfothergill jennyfothergill marked this pull request as ready for review October 18, 2021 22:07
Copy link
Member

@chrisjonesBSU chrisjonesBSU left a comment

Choose a reason for hiding this comment

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

These added utilities look awesome! I left a couple suggestions which I think would be useful for future-proofing some of the utilities in the case other uses for these might arise.

Also, I'm not that familiar with the order parameter you're calculating, but is that also a utility that could be added, maybe to structure.py? Or would it be more applicable to just have an example notebook and other people can apply the same approach to their own systems?

cmeutils/geometry.py Outdated Show resolved Hide resolved
cmeutils/gsd_utils.py Show resolved Hide resolved
@jennyfothergill jennyfothergill merged commit 1e3e7d8 into cmelab:master Oct 19, 2021
@jennyfothergill jennyfothergill deleted the feat/order_parameter branch October 19, 2021 22:41
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