コード例 #1
0
ファイル: PhyloXMLIO.py プロジェクト: stxinsite/biopython
 def point(self, elem):
     """Create point object, coordinates of a point."""
     return PX.Point(elem.get('geodetic_datum'),
                     _get_child_text(elem, 'lat', float),
                     _get_child_text(elem, 'long', float),
                     alt=_get_child_text(elem, 'alt', float),
                     alt_unit=elem.get('alt_unit'))
コード例 #2
0
ファイル: PhyloXMLIO.py プロジェクト: gitly110/python_exc
 def point(self, elem):
     return PX.Point(
         elem.get('geodetic_datum'),
         _get_child_text(elem, 'lat', float),
         _get_child_text(elem, 'long', float),
         alt=_get_child_text(elem, 'alt', float),
         alt_unit=elem.get('alt_unit'))
コード例 #3
0
ファイル: PhyloXMLIO.py プロジェクト: zyha/biopython
 def point(self, elem):
     """Create point object, coordinates of a point."""
     return PX.Point(
         elem.get("geodetic_datum"),
         _get_child_text(elem, "lat", float),
         _get_child_text(elem, "long", float),
         alt=_get_child_text(elem, "alt", float),
         alt_unit=elem.get("alt_unit"))