Skip to content

Commit

Permalink
DDG4: eval all properties to avoid cppyy.gbl.string with bytes
Browse files Browse the repository at this point in the history
  • Loading branch information
andresailer committed May 7, 2024
1 parent 32ae1de commit c63f900
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions DDG4/python/DDG4.py
Original file line number Diff line number Diff line change
Expand Up @@ -304,11 +304,11 @@ def _get(self, name):
a = Interface.toAction(self)
ret = Interface.getProperty(a, name)
if ret.status > 0:
return ret.data
return _evalProperty(ret.data)
elif hasattr(self.action, name):
return getattr(self.action, name)
return _evalProperty(getattr(self.action, name))
elif hasattr(a, name):
return getattr(a, name)
return _evalProperty(getattr(a, name))
msg = 'Geant4Action::GetProperty [Unhandled]: Cannot access property ' + a.name() + '.' + name
raise KeyError(msg)

Expand Down

0 comments on commit c63f900

Please sign in to comment.