From 428abdc8aa7f3031bc8fe751e8ff71ec29b7df44 Mon Sep 17 00:00:00 2001 From: Austin Schneider Date: Sun, 2 Jun 2024 11:48:07 -0500 Subject: [PATCH] Rename macro for pybind11 cereal methods --- .../interactions/public/SIREN/interactions/pyCrossSection.h | 2 +- .../public/SIREN/interactions/pyDarkNewsCrossSection.h | 2 +- .../interactions/public/SIREN/interactions/pyDarkNewsDecay.h | 2 +- projects/interactions/public/SIREN/interactions/pyDecay.h | 2 +- projects/utilities/public/SIREN/utilities/Pybind11Trampoline.h | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/projects/interactions/public/SIREN/interactions/pyCrossSection.h b/projects/interactions/public/SIREN/interactions/pyCrossSection.h index 4b451072e..15349485b 100644 --- a/projects/interactions/public/SIREN/interactions/pyCrossSection.h +++ b/projects/interactions/public/SIREN/interactions/pyCrossSection.h @@ -49,7 +49,7 @@ class pyCrossSection : public CrossSection { double FinalStateProbability(dataclasses::InteractionRecord const & record) const override; std::vector DensityVariables() const override; - RegisterPybind11Trampoline(CrossSection, pyCrossSection); + Pybind11TrampolineCerealMethods(CrossSection, pyCrossSection); }; // class pyCrossSection } // namespace interactions diff --git a/projects/interactions/public/SIREN/interactions/pyDarkNewsCrossSection.h b/projects/interactions/public/SIREN/interactions/pyDarkNewsCrossSection.h index 41befd966..9b45bc177 100644 --- a/projects/interactions/public/SIREN/interactions/pyDarkNewsCrossSection.h +++ b/projects/interactions/public/SIREN/interactions/pyDarkNewsCrossSection.h @@ -56,7 +56,7 @@ class pyDarkNewsCrossSection : public DarkNewsCrossSection { std::vector GetPossibleSignaturesFromParents(siren::dataclasses::ParticleType primary_type, siren::dataclasses::ParticleType target_type) const override; double FinalStateProbability(dataclasses::InteractionRecord const & record) const override; - RegisterPybind11Trampoline(DarkNewsCrossSection, pyDarkNewsCrossSection); + Pybind11TrampolineCerealMethods(DarkNewsCrossSection, pyDarkNewsCrossSection); }; } // namespace interactions diff --git a/projects/interactions/public/SIREN/interactions/pyDarkNewsDecay.h b/projects/interactions/public/SIREN/interactions/pyDarkNewsDecay.h index 8f674f048..27902808d 100644 --- a/projects/interactions/public/SIREN/interactions/pyDarkNewsDecay.h +++ b/projects/interactions/public/SIREN/interactions/pyDarkNewsDecay.h @@ -52,7 +52,7 @@ class pyDarkNewsDecay : public DarkNewsDecay { std::vector DensityVariables() const override; double FinalStateProbability(dataclasses::InteractionRecord const & record) const override; - RegisterPybind11Trampoline(DarkNewsDecay, pyDarkNewsDecay); + Pybind11TrampolineCerealMethods(DarkNewsDecay, pyDarkNewsDecay); }; // class pyDarkNewsDecay diff --git a/projects/interactions/public/SIREN/interactions/pyDecay.h b/projects/interactions/public/SIREN/interactions/pyDecay.h index 45a7bf257..90a5263de 100644 --- a/projects/interactions/public/SIREN/interactions/pyDecay.h +++ b/projects/interactions/public/SIREN/interactions/pyDecay.h @@ -48,7 +48,7 @@ class pyDecay : public Decay { std::vector DensityVariables() const override; double FinalStateProbability(dataclasses::InteractionRecord const & record) const override; - RegisterPybind11Trampoline(Decay, pyDecay); + Pybind11TrampolineCerealMethods(Decay, pyDecay); }; // class pyDecay } // namespace interactions diff --git a/projects/utilities/public/SIREN/utilities/Pybind11Trampoline.h b/projects/utilities/public/SIREN/utilities/Pybind11Trampoline.h index d4b2d873f..c26edd35d 100644 --- a/projects/utilities/public/SIREN/utilities/Pybind11Trampoline.h +++ b/projects/utilities/public/SIREN/utilities/Pybind11Trampoline.h @@ -69,7 +69,7 @@ return BaseType::cfuncname(__VA_ARGS__); \ } while (false); -#define RegisterPybind11Trampoline(BaseType, TrampolineType) \ +#define Pybind11TrampolineCerealMethods(BaseType, TrampolineType) \ public: \ pybind11::object self; \ pybind11::object get_representation() { \