def events(self, elem): return PX.Events( type=_get_child_text(elem, 'type'), duplications=_get_child_text(elem, 'duplications', int), speciations=_get_child_text(elem, 'speciations', int), losses=_get_child_text(elem, 'losses', int), confidence=_get_child_as(elem, 'confidence', self.confidence))
def events(self, elem): """Create events object.""" return PX.Events( type=_get_child_text(elem, "type"), duplications=_get_child_text(elem, "duplications", int), speciations=_get_child_text(elem, "speciations", int), losses=_get_child_text(elem, "losses", int), confidence=_get_child_as(elem, "confidence", self.confidence))