Skip to content

Commit

Permalink
Fix param type determination on macOS
Browse files Browse the repository at this point in the history
  • Loading branch information
tmadlener committed May 17, 2024
1 parent a18229b commit 49dcd65
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion python/podio/frame.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 49dcd65

Please sign in to comment.