def _set_endPoint(self, endPoint):
        if endPoint in PortSpec.end_point_map.inverse:
            self.db_type = PortSpec.end_point_map.inverse[endPoint]
        else:
            self.db_type = 'invalid'
dataset/ETHPy150Open VisTrails/VisTrails/vistrails/core/vistrail/port.py/Port._set_endPoint/original