Skip to content

Commit

Permalink
fix: non-mean CN
Browse files Browse the repository at this point in the history
  • Loading branch information
Cloudac7 committed Sep 23, 2023
1 parent eca841b commit 2084034
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion miko/structure/coordination_number.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ def __init__(self,
m: int = 12,
box: Optional[NDArray] = None,
switch_function: Optional[Callable] = None,
mean: bool = True,
**kwargs):
super(CoordinationNumber, self).__init__(
g1.universe.trajectory,
Expand All @@ -53,6 +54,7 @@ def __init__(self,
self.m = m
self.box = box
self.switch_function = switch_function
self.mean = mean


def _prepare(self):
Expand All @@ -71,6 +73,7 @@ def _single_frame(self):
n=self.n,
m=self.m,
box=self.box,
switch_function=self.switch_function
switch_function=self.switch_function,
mean=self.mean
)
)

0 comments on commit 2084034

Please sign in to comment.