def distribution(self, elem): """Create geographic distribution object.""" return PX.Distribution( desc=_collapse_wspace(_get_child_text(elem, "desc")), points=_get_children_as(elem, "point", self.point), polygons=_get_children_as(elem, "polygon", self.polygon), )
def distribution(self, elem): return PX.Distribution( desc=_collapse_wspace(_get_child_text(elem, 'desc')), points=_get_children_as(elem, 'point', self.point), polygons=_get_children_as(elem, 'polygon', self.polygon))