def _set_spec(self, spec):
        self._spec = spec
        if self._spec is not None:
            self.name = self._spec.name
            self.type = PortSpec.port_type_map[self._spec.type]
            self.signature = self._spec.sigstring
            # self.find_port_types()
        else:
            self.signature = ""
dataset/ETHPy150Open VisTrails/VisTrails/vistrails/core/vistrail/port.py/Port._set_spec/original