File tree Expand file tree Collapse file tree 1 file changed +1
-11
lines changed
Expand file tree Collapse file tree 1 file changed +1
-11
lines changed Original file line number Diff line number Diff line change 1616from openpathsampling .tests .test_helpers import make_1d_traj
1717
1818
19- def _wrap (x , period_min , period_max ):
20- # used in testing periodic CVs
21- while x >= period_max :
22- x -= period_max - period_min
23- while x < period_min :
24- x += period_max - period - min
25- return x
26-
27-
2819@pytest .fixture
2920def volume_setup ():
3021 cv = CoordinateFunctionCV (lambda snap : snap .xyz [0 ][0 ]).named ('x' )
@@ -120,8 +111,7 @@ def test_cv_defined_volume(periodic):
120111 min_ = 0.0
121112 max_ = 1.0
122113 cv = CoordinateFunctionCV (
123- lambda snap : _wrap (snap .xyz [0 ][0 ], period_min = min_ ,
124- period_max = max_ ),
114+ lambda snap : snap .xyz [0 ][0 ],
125115 period_min = min_ , period_max = max_
126116 ).named ('x' )
127117 inputs = ['x' , '0.75' , '1.25' ]
You can’t perform that action at this time.
0 commit comments