Skip to content

Commit

Permalink
update values test_preprocessing
Browse files Browse the repository at this point in the history
  • Loading branch information
RoyStegeman committed Aug 7, 2023
1 parent 9d9b0c0 commit 5b49c83
Showing 1 changed file with 41 additions and 39 deletions.
80 changes: 41 additions & 39 deletions n3fit/src/n3fit/tests/test_preprocessing.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,45 +21,47 @@ def test_preprocessing():
test_x = np.random.uniform(size=(1, 4, 1))
test_prefactors = [
[
3.2668063e-01,
6.7284244e-01,
3.9915803e-01,
1.5305418e-01,
1.8249598e-01,
7.2065055e-02,
3.1497714e-01,
1.3243365e-01,
],
[
4.6502685e-04,
2.4272988e-02,
2.2857290e-02,
3.3989837e-04,
1.6686485e-04,
7.2010938e-05,
1.4990549e-04,
1.3058851e-04,
],
[
3.5664584e-02,
2.0763232e-01,
1.7362502e-01,
2.5178187e-02,
2.0087767e-02,
1.0968268e-02,
2.2659913e-02,
1.6590673e-02,
],
[
1.0150098e-01,
3.5557139e-01,
2.6867521e-01,
6.4237528e-02,
5.9941418e-02,
3.0898115e-02,
7.7342905e-02,
4.8169162e-02,
],
[
3.7446213e-01,
1.9785003e-01,
2.7931085e-01,
2.0784079e-01,
4.5369801e-01,
2.7796263e-01,
5.4610312e-01,
2.4907256e-02,
],
[
6.2252983e-04,
3.0504008e-05,
4.5713778e-03,
1.0905267e-03,
4.0506415e-02,
5.9004971e-05,
4.5114113e-03,
2.6757403e-09,
],
[
4.1631009e-02,
1.0586979e-02,
8.3202787e-02,
4.3506064e-02,
2.2559988e-01,
1.5161950e-02,
1.0105091e-01,
1.4808348e-04,
],
[
1.1616933e-01,
4.2717375e-02,
1.5620175e-01,
9.7478621e-02,
3.2600221e-01,
5.8901049e-02,
2.1937098e-01,
1.8343410e-03,
],
]
]
prefactors = prepro(test_x)
np.testing.assert_allclose(test_prefactors, prefactors)

0 comments on commit 5b49c83

Please sign in to comment.