added push_back property
Some checks failed
Build the package using cmake then documentation / build (ubuntu-latest, 3.12) (push) Failing after 37s

This commit is contained in:
Mazzoleni Alice Francesca
2025-04-07 13:41:14 +02:00
parent a12e43b176
commit 017960d963
2 changed files with 7 additions and 7 deletions

View File

@ -16,12 +16,13 @@ def test_ClusterVector():
cluster = Cluster3x3i(0,0,np.ones(9, dtype=np.int32))
#clustervector.push_back(cluster)
#assert clustervector.size == 1
clustervector.push_back(cluster)
assert clustervector.size == 1
#push_back - check size
def test_Interpolator():
"""Test Interpolator"""
@ -36,12 +37,11 @@ def test_Interpolator():
assert interpolator.get_ietay().shape == (30,30,20)
clustervector = ClusterVector_Cluster3x3i()
#TODO clustervector is empty
cluster = Cluster3x3i(0,0, np.ones(9, dtype=np.int32))
#clustervector.push_back(cluster)
num_clusters = 1;
#num_clusters = 1;
assert interpolator.interpolate_Cluster3x3i(clustervector).shape == (num_clusters, 3)
#assert interpolator.interpolate_Cluster3x3i(clustervector).shape == (num_clusters, 3)
#def test_cluster_file():