______________________________________________________________________ test_zshift_0 _______________________________________________________________________
cl_context = <pyopencl.Context at 0x12bca05f0 on <pyopencl.Device 'pthread-POWER9, altivec supported' on 'Portable Computing Language' at 0x12bc229f0>>
cl_shzmat = cl.Array([ 1.0000000e+00, 1.7320508e+00, 1.0000000e+00, ...,
3.9918969e-08, -2.0758608e-09, 5.2570500e-11], dtype=float32)
@settings(max_examples=10)
> @given(
almparams=alm_parameters(
# Need a reasonable LMAX to get accurate results
LMAX=st.integers(min_value=10, max_value=LMAX_TEST),
worksize=st.integers(min_value=1, max_value=16),
),
xyz_ff=atom_xyzf(),
)
test/test_zshift.py:83:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
test/test_zshift.py:108: in test_zshift_0
np_alm_orig = alm_orig.get(unpack=True)
.venv/lib/python3.10/site-packages/galumph/almarray.py:42: in get
ary[L, 0:L+1, :] = self[packed_range, :].get(queue=queue, **kwargs)
/usr/lib/python3.10/site-packages/pyopencl/array.py:2081: in __getitem__
return self._new_with_changes(
/usr/lib/python3.10/site-packages/pyopencl/array.py:642: in _new_with_changes
return self.__class__(None, shape, dtype, allocator=allocator,
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <[AttributeError("'AlmArray' object has no attribute 'queue'") raised in repr()] AlmArray object at 0x3fff0e644460>, cq = None, LMAX = (1, 4)
NS = dtype('complex64'), dtype = 'c8'
kwargs = {'_context': <pyopencl.Context at 0x12bca05f0 on <pyopencl.Device 'pthread-POWER9, altivec supported' on 'Portable Com...' at 0x12bc229f0>>, '_fast': False, '_queue': <pyopencl._cl.CommandQueue object at 0x3fff0e6b01d0>, '_size': None, ...}
def __init__(self, cq, LMAX, NS, dtype='c8', **kwargs):
"""Work out the shape from LMAX and call the superclass constructor."""
> assert LMAX >= 0
E TypeError: '>=' not supported between instances of 'tuple' and 'int'
E Falsifying example: test_zshift_0(
E almparams={'LMAX': 10,
E 's': array([0. , 0.33333333, 0.66666667, 1. ]),
E 'worksize': 1,
E 'natwork': 4},
E xyz_ff=(array([[0., 0., 0.]], dtype=float32), array([1.], dtype=float32)),
E cl_context=<pyopencl.Context at 0x12bca05f0 on <pyopencl.Device 'pthread-POWER9, altivec supported' on 'Portable Computing Language' at 0x12bc229f0>>,
E cl_shzmat=cl.Array([ 1.0000000e+00, 1.7320508e+00, 1.0000000e+00, ...,
E 3.9918969e-08, -2.0758608e-09, 5.2570500e-11], dtype=float32),
E )
.venv/lib/python3.10/site-packages/galumph/almarray.py:20: TypeError