mirror of
https://github.com/slsdetectorgroup/aare.git
synced 2025-06-06 12:50:40 +02:00
np test
This commit is contained in:
parent
113f34cc98
commit
92f5421481
@ -5,6 +5,12 @@ import aare._aare as aare
|
|||||||
from conftest import test_data_path
|
from conftest import test_data_path
|
||||||
|
|
||||||
|
|
||||||
|
def test_cluster_vector_can_be_converted_to_numpy():
|
||||||
|
cv = aare.ClusterVector_Cluster3x3i()
|
||||||
|
arr = np.array(cv, copy=False)
|
||||||
|
assert arr.shape == (0,) # 4 for x, y, size, energy and 9 for the cluster data
|
||||||
|
|
||||||
|
|
||||||
def test_ClusterVector():
|
def test_ClusterVector():
|
||||||
"""Test ClusterVector"""
|
"""Test ClusterVector"""
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user