mirror of
https://github.com/slsdetectorgroup/aare.git
synced 2025-06-12 15:27:13 +02:00
added push_back property
Some checks failed
Build the package using cmake then documentation / build (ubuntu-latest, 3.12) (push) Failing after 37s
Some checks failed
Build the package using cmake then documentation / build (ubuntu-latest, 3.12) (push) Failing after 37s
This commit is contained in:
@ -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():
|
||||
|
Reference in New Issue
Block a user