Skip to content
This repository was archived by the owner on Oct 24, 2023. It is now read-only.

Conversation

@jjerphan
Copy link
Contributor

This fixes a failure on test_RAND_array_value_poisson:

FAILED
 GENERATORS/SIMULATIONS/RAND/RAND_test_.py::test_RAND_array_value_poisson
 - AssertionError: assert 0.013319999999999999 < 0.01
 +  where 0.013319999999999999 = abs((0.98668 - 1))
 +    where 0.98668 = <function mean at 0x7fce70b12db0>(array([1, 2, 0, ..., 1, 1, 0]))
 +      where <function mean at 0x7fce70b12db0> = np.mean
 +      and   array([1, 2, 0, ..., 1, 1, 0]) = Box({'type':
'OrderedPair', 'x': array([    0,     1,     2, ..., 99997, 99998,
99999]), 'y': array([1, 2, 0, ..., 1, 1, 0]), 'extra': None}).y

See: https://github.com/flojoy-ai/nodes/actions/runs/6237588170/job/16931517633?pr=299#step:5:820

This fixes a failure on `test_RAND_array_value_poisson`:

```
FAILED
 GENERATORS/SIMULATIONS/RAND/RAND_test_.py::test_RAND_array_value_poisson
 - AssertionError: assert 0.013319999999999999 < 0.01
 +  where 0.013319999999999999 = abs((0.98668 - 1))
 +    where 0.98668 = <function mean at 0x7fce70b12db0>(array([1, 2, 0, ..., 1, 1, 0]))
 +      where <function mean at 0x7fce70b12db0> = np.mean
 +      and   array([1, 2, 0, ..., 1, 1, 0]) = Box({'type':
'OrderedPair', 'x': array([    0,     1,     2, ..., 99997, 99998,
99999]), 'y': array([1, 2, 0, ..., 1, 1, 0]), 'extra': None}).y
```

Signed-off-by: Julien Jerphanion <[email protected]>
Copy link
Member

@itsjoeoui itsjoeoui left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@itsjoeoui itsjoeoui merged commit 6c2528b into develop Sep 21, 2023
@itsjoeoui itsjoeoui deleted the fix/test_RAND_array_value_poisson branch September 21, 2023 22:27
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants