Skip to content

Commit

Permalink
Adding subtract self to the neighborlist generator (#19)
Browse files Browse the repository at this point in the history
  • Loading branch information
rosecers authored and ortengren committed Nov 22, 2023
1 parent 0de6700 commit ff12693
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion anisoap/representations/ellipsoidal_density_projection.py
Original file line number Diff line number Diff line change
Expand Up @@ -532,7 +532,9 @@ def transform(self, frames, show_progress=False, normalize=True):
frames[i].arrays["c_diameter[3]"][j] / 2,
]

self.nl = NeighborList(self.cutoff_radius, True, True).compute(frame_generator)
self.nl = NeighborList(
self.cutoff_radius, True, (not self.subtract_center_contribution)
).compute(frame_generator)

pairwise_ellip_feat = pairwise_ellip_expansion(
self.max_angular,
Expand Down

0 comments on commit ff12693

Please sign in to comment.