-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Tests failing due to new awkward release? #246
Comments
I don't see anything in the last few releases that would touch something so low-level: it's looking at memory and picking up random junk. In the last test, quoted above, the expected result [[[[[
{'px': 11.2, 'py': 3.2, 'pz': 5.4, 'E': 2.5},
{'px': 64.65, 'py': 127.41999999999999, 'pz': 1086.48, 'E': 48.68}]
]]], [[[[
{'px': 1.2, 'py': 3.2, 'pz': 5.4, 'E': 2.5},
{'px': 64.65, 'py': 127.41999999999999, 'pz': 1086.48, 'E': 48.68}
]]]], [[[[
{'px': 11.2, 'py': 3.2, 'pz': 5.4, 'E': 2.5},
{'px': 64.65, 'py': 127.41999999999999, 'pz': 1086.48, 'E': 48.68}
]]]]] came out as [
[[[[{'px': 6e-323, 'py': 51.18, 'pz': 6e-323, 'E': 51.18}]]]],
[[[[{'px': 3e-323, 'py': 51.18, 'pz': 3e-323, 'E': 51.18}]]]],
[[[[{'px': 9e-323, 'py': 51.18, 'pz': 9e-323, 'E': 51.18}]]]],
] It has the same depth of structure (the nested Python objects), but there are wrong offsets here (list lengths are different) and wrong values ( |
It looks like this is probably caused by a bug in the array-interface implementation, which is fixed by scikit-hep/awkward#2697. We'll get another release out, and see what happens! |
Great, looks these tests are now passing! However, there's one failure [1] now I guess because [1] ___________________________ test_inclusive_from_file ___________________________
def test_inclusive_from_file():
from pathlib import Path
import uproot
> from dask_awkward.lib.testutils import assert_eq
tests/test_008-dask.py:103:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
from __future__ import annotations
import random
from typing import Any
import awkward as ak
import numpy as np
> import pyarrow as pa
E ModuleNotFoundError: No module named 'pyarrow'
../../../hostedtoolcache/Python/3.8.17/x64/lib/python3.8/site-packages/dask_awkward/lib/testutils.py:8: ModuleNotFoundError |
Some weird tests failures now [1, 2].
@lgray @jpivarski do the tests perhaps need to be modified because of awkward going from
2.3.1
->2.3.3
?They appear to have passed 3 weeks ago with awkward
2.3.1
: #244[1] tests/test_002-exclusive_jets.py::test_listoffset_indexed_input
[2] tests/test_007-general.py::test_indexed_subtree_input
The text was updated successfully, but these errors were encountered: