clipspy-1.0.0/clips/classes.py
def find_instance(self, name: str, module: Module = None) -> Instance:
        """Find the Instance by the given name."""
        module = module._mdl if module is not None else ffi.NULL
        definstance = lib.FindInstance(self._env, module, name.encode(),
                                       ClassDefaultMode.CONSERVATION_MODE)
        if definstance == ffi.NULL:
            raise LookupError("Instance '%s' not found" % name)

        return Instance(self._env, definstance)
Find the Instance by the given name.
Find the Instance by the given name.
Find the Instance by the given name .
def find_instance(self, name: str, module: Module = None) -> Instance:
        module = module._mdl if module is not None else ffi.NULL
        definstance = lib.FindInstance(self._env, module, name.encode(),
                                       ClassDefaultMode.CONSERVATION_MODE)
        if definstance == ffi.NULL:
            raise LookupError("Instance '%s' not found" % name)
        return Instance(self._env, definstance)
def find_instance ( self , name : str , module : Module = None ) -> Instance : module = module . _mdl if module is not None else ffi . NULL definstance = lib . FindInstance ( self . _env , module , name . encode ( ) , ClassDefaultMode . CONSERVATION_MODE ) if definstance == ffi . NULL : raise LookupError ( "Instance '%s' not found" % name ) return Instance ( self . _env , definstance )
Find the Instance by the given name.
Find the Instance by the given name .
"""Find the Instance by the given name."""
self
name
str
module
Module