From 92f5421481c05634fd54e018245d8f5530721f28 Mon Sep 17 00:00:00 2001 From: froejdh_e Date: Thu, 10 Apr 2025 16:58:47 +0200 Subject: [PATCH] np test --- python/tests/test_Cluster.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/python/tests/test_Cluster.py b/python/tests/test_Cluster.py index 29d5ad9..e24bcf8 100644 --- a/python/tests/test_Cluster.py +++ b/python/tests/test_Cluster.py @@ -5,6 +5,12 @@ import aare._aare as aare 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(): """Test ClusterVector"""