Skip to content

Commit d841a74

Browse files
committed
_wrap was not needed (happens internally)
1 parent 4e3ff32 commit d841a74

File tree

1 file changed

+1
-11
lines changed

1 file changed

+1
-11
lines changed

paths_cli/tests/wizard/test_volumes.py

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,6 @@
1616
from 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
2920
def 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']

0 commit comments

Comments
 (0)