mirror of
https://github.com/slsdetectorgroup/aare.git
synced 2025-04-22 06:40:03 +02:00
Merge branch 'main' into developer
This commit is contained in:
commit
9d8e803474
@ -104,6 +104,7 @@ if(AARE_FETCH_LMFIT)
|
|||||||
)
|
)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
|
||||||
#Disable what we don't need from lmfit
|
#Disable what we don't need from lmfit
|
||||||
set(BUILD_TESTING OFF CACHE BOOL "")
|
set(BUILD_TESTING OFF CACHE BOOL "")
|
||||||
set(LMFIT_CPPTEST OFF CACHE BOOL "")
|
set(LMFIT_CPPTEST OFF CACHE BOOL "")
|
||||||
|
@ -5,6 +5,7 @@ package:
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
source:
|
source:
|
||||||
path: ..
|
path: ..
|
||||||
|
|
||||||
|
@ -10,6 +10,7 @@
|
|||||||
|
|
||||||
namespace aare {
|
namespace aare {
|
||||||
|
|
||||||
|
|
||||||
//TODO! Legacy enums, migrate to enum class
|
//TODO! Legacy enums, migrate to enum class
|
||||||
typedef enum {
|
typedef enum {
|
||||||
cBottomLeft = 0,
|
cBottomLeft = 0,
|
||||||
@ -90,6 +91,8 @@ class ClusterFile {
|
|||||||
*/
|
*/
|
||||||
ClusterVector<int32_t> read_clusters(size_t n_clusters);
|
ClusterVector<int32_t> read_clusters(size_t n_clusters);
|
||||||
|
|
||||||
|
ClusterVector<int32_t> read_clusters(size_t n_clusters, ROI roi);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Read a single frame from the file and return the clusters. The
|
* @brief Read a single frame from the file and return the clusters. The
|
||||||
* cluster vector will have the frame number set.
|
* cluster vector will have the frame number set.
|
||||||
@ -146,5 +149,4 @@ Eta2 calculate_eta2(Cluster3x3 &cl);
|
|||||||
Eta2 calculate_eta2(Cluster2x2 &cl);
|
Eta2 calculate_eta2(Cluster2x2 &cl);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
} // namespace aare
|
} // namespace aare
|
||||||
|
@ -8,6 +8,7 @@ version = "2025.4.1"
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
[tool.scikit-build]
|
[tool.scikit-build]
|
||||||
cmake.verbose = true
|
cmake.verbose = true
|
||||||
|
|
||||||
|
@ -31,6 +31,11 @@ void define_cluster_file_io_bindings(py::module &m) {
|
|||||||
auto v = new ClusterVector<int32_t>(self.read_clusters(n_clusters));
|
auto v = new ClusterVector<int32_t>(self.read_clusters(n_clusters));
|
||||||
return v;
|
return v;
|
||||||
},py::return_value_policy::take_ownership)
|
},py::return_value_policy::take_ownership)
|
||||||
|
.def("read_clusters",
|
||||||
|
[](ClusterFile &self, size_t n_clusters, ROI roi) {
|
||||||
|
auto v = new ClusterVector<int32_t>(self.read_clusters(n_clusters, roi));
|
||||||
|
return v;
|
||||||
|
},py::return_value_policy::take_ownership)
|
||||||
.def("read_frame",
|
.def("read_frame",
|
||||||
[](ClusterFile &self) {
|
[](ClusterFile &self) {
|
||||||
auto v = new ClusterVector<int32_t>(self.read_frame());
|
auto v = new ClusterVector<int32_t>(self.read_frame());
|
||||||
|
@ -147,7 +147,6 @@ ClusterVector<int32_t> ClusterFile::read_clusters_without_cut(size_t n_clusters)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
ClusterVector<int32_t> ClusterFile::read_clusters_with_cut(size_t n_clusters) {
|
ClusterVector<int32_t> ClusterFile::read_clusters_with_cut(size_t n_clusters) {
|
||||||
ClusterVector<int32_t> clusters(3,3);
|
ClusterVector<int32_t> clusters(3,3);
|
||||||
clusters.reserve(n_clusters);
|
clusters.reserve(n_clusters);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user