Skip to content

Commit

Permalink
FIX: remove IsobarNode argument checks (#110)
Browse files Browse the repository at this point in the history
  • Loading branch information
redeboer authored Apr 25, 2024
1 parent b5d3195 commit a7c58b8
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions src/ampform_dpd/decay.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,20 +116,6 @@ def get_decay_product_ids(
class ThreeBodyDecayChain:
decay: IsobarNode = field(validator=instance_of(IsobarNode))

def __attrs_post_init__(self) -> None:
if not isinstance(self.decay.child1, IsobarNode):
msg = f"Child 1 has of type {IsobarNode.__name__} (the decay)"
raise TypeError(msg)
if not isinstance(self.decay.child1.child1, Particle):
msg = f"Child 1 of child 1 has of type {Particle.__name__}"
raise TypeError(msg)
if not isinstance(self.decay.child1.child2, Particle):
msg = f"Child 2 of child 1 has of type {Particle.__name__}"
raise TypeError(msg)
if not isinstance(self.decay.child2, Particle):
msg = f"Child 2 has of type {Particle.__name__} (spectator)"
raise TypeError(msg)

@property
def parent(self) -> Particle:
return self.decay.parent
Expand Down

0 comments on commit a7c58b8

Please sign in to comment.