Skip to content

Commit

Permalink
Add a comment about the indexing
Browse files Browse the repository at this point in the history
  • Loading branch information
jmcarcell committed Sep 18, 2024
1 parent 103b1ac commit 8c20100
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions python/podio/frame.py
Original file line number Diff line number Diff line change
Expand Up @@ -264,6 +264,8 @@ def put_parameter(self, key, value, as_type=None):
cpp_types = _get_cpp_types(as_type)
if len(cpp_types) == 0:
raise ValueError(f"Cannot put a parameter of type {as_type} into a Frame")
# The first [0] gets the tuple, the second [0] gets the actual C++ type
# from SUPPORTED_PARAMETER_TYPES
self._frame.putParameter[cpp_types[0][0]](key, value)

# If we have a single integer, a std::string overload kicks in with higher
Expand Down

0 comments on commit 8c20100

Please sign in to comment.