fix photon reaction __repr__

This commit is contained in:
liangjg 2019-03-21 11:45:57 -04:00
parent 21888e6cb5
commit acf4b3616c

View file

@ -904,7 +904,7 @@ class PhotonReaction(EqualityMixin):
def __repr__(self):
if self.mt in _REACTION_NAME:
return "<Photon Reaction: MT={} {}>".format(
self.mt, _REACTION_NAME[self.mt])
self.mt, _REACTION_NAME[self.mt][0])
else:
return "<Photon Reaction: MT={}>".format(self.mt)