-
Notifications
You must be signed in to change notification settings - Fork 68
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
found file since all code disappeared
- Loading branch information
Bryce Sampson
committed
Jun 10, 2016
1 parent
e80d686
commit 85b48f8
Showing
1 changed file
with
29 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
import vcs | ||
import numpy | ||
|
||
box = vcs.createboxfill() | ||
|
||
box.ext_1 = True | ||
assert numpy.allclose(box.levels, [1e20] * 2) | ||
|
||
box.ext_2 = True | ||
assert numpy.allclose(box.levels, [1e20] * 2) | ||
|
||
box.levels = [1, 10, 20, 30, 40, 50, 60, 70, 80, 90, 100] | ||
assert box.ext_1 == False | ||
assert box.ext_1 == False | ||
|
||
box.ext_1 = True | ||
assert box.levels[0] < -9e19 | ||
|
||
box.ext_2 = True | ||
assert box.levels[-1] > 9e19 | ||
|
||
box.ext_1 = False | ||
assert box.levels[0] > -9e19 | ||
|
||
box.ext_2 = False | ||
assert box.levels[-1] < 9e19 | ||
|
||
|
||
|