diff --git a/decaylanguage/dec/dec.py b/decaylanguage/dec/dec.py index e771bbd2..c2c48465 100644 --- a/decaylanguage/dec/dec.py +++ b/decaylanguage/dec/dec.py @@ -454,7 +454,7 @@ def _add_charge_conjugate_decays(self): def _is_not_self_conj(t): try: mname = t.children[0].children[0].value - if Particle.from_string(mname).is_self_conjugate: + if Particle.from_evtgen_name(mname).is_self_conjugate: msg = """Found 'CDecay' statement for self-conjugate particle {0}. This is a bug! Skipping creation of charge-conjugate decay Tree.""".format(mname) warnings.warn(msg)