mirror of
https://github.com/slsdetectorgroup/aare.git
synced 2025-04-20 05:40:03 +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:
parent
a12e43b176
commit
017960d963
@ -87,12 +87,12 @@ void define_cluster_vector(py::module &m, const std::string &typestr) {
|
||||
},
|
||||
py::arg("cluster"))
|
||||
*/
|
||||
/*
|
||||
|
||||
.def("push_back",
|
||||
[](ClusterVector<ClusterType> &self, const ClusterType &cluster) {
|
||||
self.push_back(cluster);
|
||||
})
|
||||
*/
|
||||
|
||||
//.def("push_back", &ClusterVector<ClusterType>::push_back) //TODO
|
||||
// implement push_back
|
||||
.def_property_readonly("size", &ClusterVector<ClusterType>::size)
|
||||
|
@ -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():
|
||||
|
Loading…
x
Reference in New Issue
Block a user