Skip to content

Commit

Permalink
Updates tests to use correct perturbation
Browse files Browse the repository at this point in the history
  • Loading branch information
holm10 committed Dec 6, 2023
1 parent b93a74c commit 1c3d1e5
Show file tree
Hide file tree
Showing 124 changed files with 2,960 additions and 6,654 deletions.
Binary file modified pytests/pytests/fulltests/nonog_d_c-fb_16x8/solution.h5
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ def perturb_solution(self, file, perturbation=1e-2):
from numpy.random import uniform
bbb = file['bbb']
for var in ['nis', 'ups', 'tes', 'tis', 'ngs', 'tgs', 'phis']:
bbb[var][...] *= uniform(low=perturbation, high=perturbation, size = bbb[var].shape)
bbb[var][...] *= uniform(low=1-perturbation, high=1+perturbation, size = bbb[var].shape)

def test_reference(self, epsilon=1e-8):
from h5py import File
Expand Down
Binary file modified pytests/pytests/fulltests/nonog_d_c-fb_32x16/solution.h5
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ def perturb_solution(self, file, perturbation=1e-2):
from numpy.random import uniform
bbb = file['bbb']
for var in ['nis', 'ups', 'tes', 'tis', 'ngs', 'tgs', 'phis']:
bbb[var][...] *= uniform(low=perturbation, high=perturbation, size = bbb[var].shape)
bbb[var][...] *= uniform(low=1-perturbation, high=1+perturbation, size = bbb[var].shape)

def test_reference(self, epsilon=1e-8):
from h5py import File
Expand Down
Binary file modified pytests/pytests/fulltests/nonog_d_c-fb_64x32/solution.h5
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ def perturb_solution(self, file, perturbation=1e-2):
from numpy.random import uniform
bbb = file['bbb']
for var in ['nis', 'ups', 'tes', 'tis', 'ngs', 'tgs', 'phis']:
bbb[var][...] *= uniform(low=perturbation, high=perturbation, size = bbb[var].shape)
bbb[var][...] *= uniform(low=1-perturbation, high=1+perturbation, size = bbb[var].shape)

def test_reference(self, epsilon=1e-8):
from h5py import File
Expand Down
Binary file modified pytests/pytests/unittests/D_only/nonog/0p5albedoc/solution.h5
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ def perturb_solution(self, file, perturbation=1e-2):
from numpy.random import uniform
bbb = file['bbb']
for var in ['nis', 'ups', 'tes', 'tis', 'ngs', 'tgs', 'phis']:
bbb[var][...] *= uniform(low=perturbation, high=perturbation, size = bbb[var].shape)
bbb[var][...] *= uniform(low=1-perturbation, high=1+perturbation, size = bbb[var].shape)

def test_reference(self, epsilon=1e-8):
from h5py import File
Expand Down
Binary file modified pytests/pytests/unittests/D_only/nonog/bcee/solution.h5
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ def perturb_solution(self, file, perturbation=1e-2):
from numpy.random import uniform
bbb = file['bbb']
for var in ['nis', 'ups', 'tes', 'tis', 'ngs', 'tgs', 'phis']:
bbb[var][...] *= uniform(low=perturbation, high=perturbation, size = bbb[var].shape)
bbb[var][...] *= uniform(low=1-perturbation, high=1+perturbation, size = bbb[var].shape)

def test_reference(self, epsilon=1e-8):
from h5py import File
Expand Down
Binary file modified pytests/pytests/unittests/D_only/nonog/bcei/solution.h5
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ def perturb_solution(self, file, perturbation=1e-2):
from numpy.random import uniform
bbb = file['bbb']
for var in ['nis', 'ups', 'tes', 'tis', 'ngs', 'tgs', 'phis']:
bbb[var][...] *= uniform(low=perturbation, high=perturbation, size = bbb[var].shape)
bbb[var][...] *= uniform(low=1-perturbation, high=1+perturbation, size = bbb[var].shape)

def test_reference(self, epsilon=1e-8):
from h5py import File
Expand Down
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ def perturb_solution(self, file, perturbation=1e-2):
from numpy.random import uniform
bbb = file['bbb']
for var in ['nis', 'ups', 'tes', 'tis', 'ngs', 'tgs', 'phis']:
bbb[var][...] *= uniform(low=perturbation, high=perturbation, size = bbb[var].shape)
bbb[var][...] *= uniform(low=1-perturbation, high=1+perturbation, size = bbb[var].shape)

def test_reference(self, epsilon=1e-8):
from h5py import File
Expand Down
Binary file modified pytests/pytests/unittests/D_only/nonog/corepower/solution.h5
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ def perturb_solution(self, file, perturbation=1e-2):
from numpy.random import uniform
bbb = file['bbb']
for var in ['nis', 'ups', 'tes', 'tis', 'ngs', 'tgs', 'phis']:
bbb[var][...] *= uniform(low=perturbation, high=perturbation, size = bbb[var].shape)
bbb[var][...] *= uniform(low=1-perturbation, high=1+perturbation, size = bbb[var].shape)

def test_reference(self, epsilon=1e-8):
from h5py import File
Expand Down
Binary file modified pytests/pytests/unittests/D_only/nonog/curcore/solution.h5
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ def perturb_solution(self, file, perturbation=1e-2):
from numpy.random import uniform
bbb = file['bbb']
for var in ['nis', 'ups', 'tes', 'tis', 'ngs', 'tgs', 'phis']:
bbb[var][...] *= uniform(low=perturbation, high=perturbation, size = bbb[var].shape)
bbb[var][...] *= uniform(low=1-perturbation, high=1+perturbation, size = bbb[var].shape)

def test_reference(self, epsilon=1e-8):
from h5py import File
Expand Down
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ def perturb_solution(self, file, perturbation=1e-2):
from numpy.random import uniform
bbb = file['bbb']
for var in ['nis', 'ups', 'tes', 'tis', 'ngs', 'tgs', 'phis']:
bbb[var][...] *= uniform(low=perturbation, high=perturbation, size = bbb[var].shape)
bbb[var][...] *= uniform(low=1-perturbation, high=1+perturbation, size = bbb[var].shape)

def test_reference(self, epsilon=1e-8):
from h5py import File
Expand Down
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ def perturb_solution(self, file, perturbation=1e-2):
from numpy.random import uniform
bbb = file['bbb']
for var in ['nis', 'ups', 'tes', 'tis', 'ngs', 'tgs', 'phis']:
bbb[var][...] *= uniform(low=perturbation, high=perturbation, size = bbb[var].shape)
bbb[var][...] *= uniform(low=1-perturbation, high=1+perturbation, size = bbb[var].shape)

def test_reference(self, epsilon=1e-8):
from h5py import File
Expand Down
Binary file modified pytests/pytests/unittests/D_only/nonog/default/solution.h5
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ def perturb_solution(self, file, perturbation=1e-2):
from numpy.random import uniform
bbb = file['bbb']
for var in ['nis', 'ups', 'tes', 'tis', 'ngs', 'tgs', 'phis']:
bbb[var][...] *= uniform(low=perturbation, high=perturbation, size = bbb[var].shape)
bbb[var][...] *= uniform(low=1-perturbation, high=1+perturbation, size = bbb[var].shape)

def test_reference(self, epsilon=1e-8):
from h5py import File
Expand Down
Binary file modified pytests/pytests/unittests/D_only/nonog/fixedngcore/solution.h5
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ def perturb_solution(self, file, perturbation=1e-2):
from numpy.random import uniform
bbb = file['bbb']
for var in ['nis', 'ups', 'tes', 'tis', 'ngs', 'tgs', 'phis']:
bbb[var][...] *= uniform(low=perturbation, high=perturbation, size = bbb[var].shape)
bbb[var][...] *= uniform(low=1-perturbation, high=1+perturbation, size = bbb[var].shape)

def test_reference(self, epsilon=1e-8):
from h5py import File
Expand Down
Binary file modified pytests/pytests/unittests/D_only/nonog/fmiy0/solution.h5
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ def perturb_solution(self, file, perturbation=1e-2):
from numpy.random import uniform
bbb = file['bbb']
for var in ['nis', 'ups', 'tes', 'tis', 'ngs', 'tgs', 'phis']:
bbb[var][...] *= uniform(low=perturbation, high=perturbation, size = bbb[var].shape)
bbb[var][...] *= uniform(low=1-perturbation, high=1+perturbation, size = bbb[var].shape)

def test_reference(self, epsilon=1e-8):
from h5py import File
Expand Down
Binary file modified pytests/pytests/unittests/D_only/nonog/lzflux1e2/solution.h5
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ def perturb_solution(self, file, perturbation=1e-2):
from numpy.random import uniform
bbb = file['bbb']
for var in ['nis', 'ups', 'tes', 'tis', 'ngs', 'tgs', 'phis']:
bbb[var][...] *= uniform(low=perturbation, high=perturbation, size = bbb[var].shape)
bbb[var][...] *= uniform(low=1-perturbation, high=1+perturbation, size = bbb[var].shape)

def test_reference(self, epsilon=1e-8):
from h5py import File
Expand Down
Binary file modified pytests/pytests/unittests/D_only/nonog/newbcl/solution.h5
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ def perturb_solution(self, file, perturbation=1e-2):
from numpy.random import uniform
bbb = file['bbb']
for var in ['nis', 'ups', 'tes', 'tis', 'ngs', 'tgs', 'phis']:
bbb[var][...] *= uniform(low=perturbation, high=perturbation, size = bbb[var].shape)
bbb[var][...] *= uniform(low=1-perturbation, high=1+perturbation, size = bbb[var].shape)

def test_reference(self, epsilon=1e-8):
from h5py import File
Expand Down
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ def perturb_solution(self, file, perturbation=1e-2):
from numpy.random import uniform
bbb = file['bbb']
for var in ['nis', 'ups', 'tes', 'tis', 'ngs', 'tgs', 'phis']:
bbb[var][...] *= uniform(low=perturbation, high=perturbation, size = bbb[var].shape)
bbb[var][...] *= uniform(low=1-perturbation, high=1+perturbation, size = bbb[var].shape)

def test_reference(self, epsilon=1e-8):
from h5py import File
Expand Down
Binary file modified pytests/pytests/unittests/D_only/nonog/newbcr/solution.h5
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ def perturb_solution(self, file, perturbation=1e-2):
from numpy.random import uniform
bbb = file['bbb']
for var in ['nis', 'ups', 'tes', 'tis', 'ngs', 'tgs', 'phis']:
bbb[var][...] *= uniform(low=perturbation, high=perturbation, size = bbb[var].shape)
bbb[var][...] *= uniform(low=1-perturbation, high=1+perturbation, size = bbb[var].shape)

def test_reference(self, epsilon=1e-8):
from h5py import File
Expand Down
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ def perturb_solution(self, file, perturbation=1e-2):
from numpy.random import uniform
bbb = file['bbb']
for var in ['nis', 'ups', 'tes', 'tis', 'ngs', 'tgs', 'phis']:
bbb[var][...] *= uniform(low=perturbation, high=perturbation, size = bbb[var].shape)
bbb[var][...] *= uniform(low=1-perturbation, high=1+perturbation, size = bbb[var].shape)

def test_reference(self, epsilon=1e-8):
from h5py import File
Expand Down
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ def perturb_solution(self, file, perturbation=1e-2):
from numpy.random import uniform
bbb = file['bbb']
for var in ['nis', 'ups', 'tes', 'tis', 'ngs', 'tgs', 'phis']:
bbb[var][...] *= uniform(low=perturbation, high=perturbation, size = bbb[var].shape)
bbb[var][...] *= uniform(low=1-perturbation, high=1+perturbation, size = bbb[var].shape)

def test_reference(self, epsilon=1e-8):
from h5py import File
Expand Down
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ def perturb_solution(self, file, perturbation=1e-2):
from numpy.random import uniform
bbb = file['bbb']
for var in ['nis', 'ups', 'tes', 'tis', 'ngs', 'tgs', 'phis']:
bbb[var][...] *= uniform(low=perturbation, high=perturbation, size = bbb[var].shape)
bbb[var][...] *= uniform(low=1-perturbation, high=1+perturbation, size = bbb[var].shape)

def test_reference(self, epsilon=1e-8):
from h5py import File
Expand Down
Binary file modified pytests/pytests/unittests/D_only/nonog/recycmlb/solution.h5
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ def perturb_solution(self, file, perturbation=1e-2):
from numpy.random import uniform
bbb = file['bbb']
for var in ['nis', 'ups', 'tes', 'tis', 'ngs', 'tgs', 'phis']:
bbb[var][...] *= uniform(low=perturbation, high=perturbation, size = bbb[var].shape)
bbb[var][...] *= uniform(low=1-perturbation, high=1+perturbation, size = bbb[var].shape)

def test_reference(self, epsilon=1e-8):
from h5py import File
Expand Down
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ def perturb_solution(self, file, perturbation=1e-2):
from numpy.random import uniform
bbb = file['bbb']
for var in ['nis', 'ups', 'tes', 'tis', 'ngs', 'tgs', 'phis']:
bbb[var][...] *= uniform(low=perturbation, high=perturbation, size = bbb[var].shape)
bbb[var][...] *= uniform(low=1-perturbation, high=1+perturbation, size = bbb[var].shape)

def test_reference(self, epsilon=1e-8):
from h5py import File
Expand Down
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ def perturb_solution(self, file, perturbation=1e-2):
from numpy.random import uniform
bbb = file['bbb']
for var in ['nis', 'ups', 'tes', 'tis', 'ngs', 'tgs', 'phis']:
bbb[var][...] *= uniform(low=perturbation, high=perturbation, size = bbb[var].shape)
bbb[var][...] *= uniform(low=1-perturbation, high=1+perturbation, size = bbb[var].shape)

def test_reference(self, epsilon=1e-8):
from h5py import File
Expand Down
Binary file modified pytests/pytests/unittests/D_only/nonog/recycmrb/solution.h5
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ def perturb_solution(self, file, perturbation=1e-2):
from numpy.random import uniform
bbb = file['bbb']
for var in ['nis', 'ups', 'tes', 'tis', 'ngs', 'tgs', 'phis']:
bbb[var][...] *= uniform(low=perturbation, high=perturbation, size = bbb[var].shape)
bbb[var][...] *= uniform(low=1-perturbation, high=1+perturbation, size = bbb[var].shape)

def test_reference(self, epsilon=1e-8):
from h5py import File
Expand Down
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ def perturb_solution(self, file, perturbation=1e-2):
from numpy.random import uniform
bbb = file['bbb']
for var in ['nis', 'ups', 'tes', 'tis', 'ngs', 'tgs', 'phis']:
bbb[var][...] *= uniform(low=perturbation, high=perturbation, size = bbb[var].shape)
bbb[var][...] *= uniform(low=1-perturbation, high=1+perturbation, size = bbb[var].shape)

def test_reference(self, epsilon=1e-8):
from h5py import File
Expand Down
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ def perturb_solution(self, file, perturbation=1e-2):
from numpy.random import uniform
bbb = file['bbb']
for var in ['nis', 'ups', 'tes', 'tis', 'ngs', 'tgs', 'phis']:
bbb[var][...] *= uniform(low=perturbation, high=perturbation, size = bbb[var].shape)
bbb[var][...] *= uniform(low=1-perturbation, high=1+perturbation, size = bbb[var].shape)

def test_reference(self, epsilon=1e-8):
from h5py import File
Expand Down
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ def perturb_solution(self, file, perturbation=1e-2):
from numpy.random import uniform
bbb = file['bbb']
for var in ['nis', 'ups', 'tes', 'tis', 'ngs', 'tgs', 'phis']:
bbb[var][...] *= uniform(low=perturbation, high=perturbation, size = bbb[var].shape)
bbb[var][...] *= uniform(low=1-perturbation, high=1+perturbation, size = bbb[var].shape)

def test_reference(self, epsilon=1e-8):
from h5py import File
Expand Down
Binary file modified pytests/pytests/unittests/D_only/nonog/up_nogradient/solution.h5
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ def perturb_solution(self, file, perturbation=1e-2):
from numpy.random import uniform
bbb = file['bbb']
for var in ['nis', 'ups', 'tes', 'tis', 'ngs', 'tgs', 'phis']:
bbb[var][...] *= uniform(low=perturbation, high=perturbation, size = bbb[var].shape)
bbb[var][...] *= uniform(low=1-perturbation, high=1+perturbation, size = bbb[var].shape)

def test_reference(self, epsilon=1e-8):
from h5py import File
Expand Down
Binary file modified pytests/pytests/unittests/D_only/nonog/upcore1e3/solution.h5
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ def perturb_solution(self, file, perturbation=1e-2):
from numpy.random import uniform
bbb = file['bbb']
for var in ['nis', 'ups', 'tes', 'tis', 'ngs', 'tgs', 'phis']:
bbb[var][...] *= uniform(low=perturbation, high=perturbation, size = bbb[var].shape)
bbb[var][...] *= uniform(low=1-perturbation, high=1+perturbation, size = bbb[var].shape)

def test_reference(self, epsilon=1e-8):
from h5py import File
Expand Down
Binary file modified pytests/pytests/unittests/D_only/nonog/utorave/solution.h5
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ def perturb_solution(self, file, perturbation=1e-2):
from numpy.random import uniform
bbb = file['bbb']
for var in ['nis', 'ups', 'tes', 'tis', 'ngs', 'tgs', 'phis']:
bbb[var][...] *= uniform(low=perturbation, high=perturbation, size = bbb[var].shape)
bbb[var][...] *= uniform(low=1-perturbation, high=1+perturbation, size = bbb[var].shape)

def test_reference(self, epsilon=1e-8):
from h5py import File
Expand Down
Binary file modified pytests/pytests/unittests/D_only/ortho/0p5albedoc/solution.h5
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ def perturb_solution(self, file, perturbation=1e-2):
from numpy.random import uniform
bbb = file['bbb']
for var in ['nis', 'ups', 'tes', 'tis', 'ngs', 'tgs', 'phis']:
bbb[var][...] *= uniform(low=perturbation, high=perturbation, size = bbb[var].shape)
bbb[var][...] *= uniform(low=1-perturbation, high=1+perturbation, size = bbb[var].shape)

def test_reference(self, epsilon=1e-8):
from h5py import File
Expand Down
Binary file modified pytests/pytests/unittests/D_only/ortho/bcee/solution.h5
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ def perturb_solution(self, file, perturbation=1e-2):
from numpy.random import uniform
bbb = file['bbb']
for var in ['nis', 'ups', 'tes', 'tis', 'ngs', 'tgs', 'phis']:
bbb[var][...] *= uniform(low=perturbation, high=perturbation, size = bbb[var].shape)
bbb[var][...] *= uniform(low=1-perturbation, high=1+perturbation, size = bbb[var].shape)

def test_reference(self, epsilon=1e-8):
from h5py import File
Expand Down
Binary file modified pytests/pytests/unittests/D_only/ortho/bcei/solution.h5
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ def perturb_solution(self, file, perturbation=1e-2):
from numpy.random import uniform
bbb = file['bbb']
for var in ['nis', 'ups', 'tes', 'tis', 'ngs', 'tgs', 'phis']:
bbb[var][...] *= uniform(low=perturbation, high=perturbation, size = bbb[var].shape)
bbb[var][...] *= uniform(low=1-perturbation, high=1+perturbation, size = bbb[var].shape)

def test_reference(self, epsilon=1e-8):
from h5py import File
Expand Down
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ def perturb_solution(self, file, perturbation=1e-2):
from numpy.random import uniform
bbb = file['bbb']
for var in ['nis', 'ups', 'tes', 'tis', 'ngs', 'tgs', 'phis']:
bbb[var][...] *= uniform(low=perturbation, high=perturbation, size = bbb[var].shape)
bbb[var][...] *= uniform(low=1-perturbation, high=1+perturbation, size = bbb[var].shape)

def test_reference(self, epsilon=1e-8):
from h5py import File
Expand Down
Binary file modified pytests/pytests/unittests/D_only/ortho/corepower/solution.h5
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ def perturb_solution(self, file, perturbation=1e-2):
from numpy.random import uniform
bbb = file['bbb']
for var in ['nis', 'ups', 'tes', 'tis', 'ngs', 'tgs', 'phis']:
bbb[var][...] *= uniform(low=perturbation, high=perturbation, size = bbb[var].shape)
bbb[var][...] *= uniform(low=1-perturbation, high=1+perturbation, size = bbb[var].shape)

def test_reference(self, epsilon=1e-8):
from h5py import File
Expand Down
Binary file modified pytests/pytests/unittests/D_only/ortho/curcore/solution.h5
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ def perturb_solution(self, file, perturbation=1e-2):
from numpy.random import uniform
bbb = file['bbb']
for var in ['nis', 'ups', 'tes', 'tis', 'ngs', 'tgs', 'phis']:
bbb[var][...] *= uniform(low=perturbation, high=perturbation, size = bbb[var].shape)
bbb[var][...] *= uniform(low=1-perturbation, high=1+perturbation, size = bbb[var].shape)

def test_reference(self, epsilon=1e-8):
from h5py import File
Expand Down
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ def perturb_solution(self, file, perturbation=1e-2):
from numpy.random import uniform
bbb = file['bbb']
for var in ['nis', 'ups', 'tes', 'tis', 'ngs', 'tgs', 'phis']:
bbb[var][...] *= uniform(low=perturbation, high=perturbation, size = bbb[var].shape)
bbb[var][...] *= uniform(low=1-perturbation, high=1+perturbation, size = bbb[var].shape)

def test_reference(self, epsilon=1e-8):
from h5py import File
Expand Down
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ def perturb_solution(self, file, perturbation=1e-2):
from numpy.random import uniform
bbb = file['bbb']
for var in ['nis', 'ups', 'tes', 'tis', 'ngs', 'tgs', 'phis']:
bbb[var][...] *= uniform(low=perturbation, high=perturbation, size = bbb[var].shape)
bbb[var][...] *= uniform(low=1-perturbation, high=1+perturbation, size = bbb[var].shape)

def test_reference(self, epsilon=1e-8):
from h5py import File
Expand Down
Binary file modified pytests/pytests/unittests/D_only/ortho/default/solution.h5
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ def perturb_solution(self, file, perturbation=1e-2):
from numpy.random import uniform
bbb = file['bbb']
for var in ['nis', 'ups', 'tes', 'tis', 'ngs', 'tgs', 'phis']:
bbb[var][...] *= uniform(low=perturbation, high=perturbation, size = bbb[var].shape)
bbb[var][...] *= uniform(low=1-perturbation, high=1+perturbation, size = bbb[var].shape)

def test_reference(self, epsilon=1e-8):
from h5py import File
Expand Down
Binary file modified pytests/pytests/unittests/D_only/ortho/fixedngcore/solution.h5
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ def perturb_solution(self, file, perturbation=1e-2):
from numpy.random import uniform
bbb = file['bbb']
for var in ['nis', 'ups', 'tes', 'tis', 'ngs', 'tgs', 'phis']:
bbb[var][...] *= uniform(low=perturbation, high=perturbation, size = bbb[var].shape)
bbb[var][...] *= uniform(low=1-perturbation, high=1+perturbation, size = bbb[var].shape)

def test_reference(self, epsilon=1e-8):
from h5py import File
Expand Down
Binary file modified pytests/pytests/unittests/D_only/ortho/fmiy0/solution.h5
Binary file not shown.
Loading

0 comments on commit 1c3d1e5

Please sign in to comment.