From 49dcd65c134640bda6edd6f36513ca30bf2f6e86 Mon Sep 17 00:00:00 2001 From: tmadlener Date: Fri, 17 May 2024 15:53:24 +0200 Subject: [PATCH] Fix param type determination on macOS --- python/podio/frame.py | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/python/podio/frame.py b/python/podio/frame.py index faf886e35..cdbfe65c9 100644 --- a/python/podio/frame.py +++ b/python/podio/frame.py @@ -53,7 +53,18 @@ def _determine_cpp_type(idx_and_type): if _FRAME_HEADER_AVAILABLE: - SUPPORTED_PARAMETER_TYPES = _determine_supported_parameter_types() + try: + SUPPORTED_PARAMETER_TYPES = _determine_supported_parameter_types() + except AttributeError: + # On macOS there is an issue that makes the template machinery not work + # so we just hard code the map here in case we hit that issue. See + # https://github.com/root-project/root/issues/14232 + SUPPORTED_PARAMETER_TYPES = ( + ("int", "int"), + ("float", "float"), + ("std::string", "str"), + ("double", "float"), + ) def _get_cpp_types(type_str):