fix build
Some checks failed
Build the package using cmake then documentation / build (ubuntu-latest, 3.12) (push) Failing after 43s

This commit is contained in:
Mazzoleni Alice Francesca
2025-04-03 17:14:28 +02:00
parent e24ed68416
commit 885309d97c
2 changed files with 3 additions and 4 deletions

View File

@ -5,6 +5,7 @@
#include "aare/ClusterVector.hpp"
#include "aare/NDArray.hpp"
#include "aare/NDView.hpp"
namespace aare {
struct Photon {
@ -27,8 +28,7 @@ class Interpolator {
NDArray<double, 3> get_ietax() { return m_ietax; }
NDArray<double, 3> get_ietay() { return m_ietay; }
template <typename ClusterType,
typename = std::enable_if_t<is_cluster_v<ClusterType>>>
template <typename ClusterType>
std::vector<Photon> interpolate(const ClusterVector<ClusterType> &clusters);
};

View File

@ -57,8 +57,7 @@ Interpolator::Interpolator(NDView<double, 3> etacube, NDView<double, 1> xbins,
// TODO: generalize to support any clustertype!!! otherwise add std::enable_if_t
// to only take Cluster2x2 and Cluster3x3
template <typename ClusterType,
typename = std::enable_if_t<is_cluster_v<ClusterType>>>
template <typename ClusterType>
std::vector<Photon>
Interpolator::interpolate(const ClusterVector<ClusterType> &clusters) {
std::vector<Photon> photons;