How to use the brainspace.vtk_interface.base.call_vtk function in brainspace

To help you get started, we’ve selected a few brainspace examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github MICA-MNI / BrainSpace / brainspace / vtk_interface / wrappers.py View on Github external
def _handle_call(self, key, name, args):
        method = self.vtk_map[key][name.lower()]
        # obj = self.VTKObject
        # if method in self._override:
        #     obj = self
        if isinstance(method, dict):
            if isinstance(args, str) and args.lower() in method['options']:
                return call_vtk(self, method['options'][args.lower()])
            elif 'name' in method:
                return call_vtk(self, method['name'], args)
            else:
                raise AttributeError("Cannot find VTK name '%s'" % name)

        return call_vtk(self, method, args)
github MICA-MNI / BrainSpace / brainspace / vtk_interface / wrappers.py View on Github external
def _handle_call(self, key, name, args):
        method = self.vtk_map[key][name.lower()]
        # obj = self.VTKObject
        # if method in self._override:
        #     obj = self
        if isinstance(method, dict):
            if isinstance(args, str) and args.lower() in method['options']:
                return call_vtk(self, method['options'][args.lower()])
            elif 'name' in method:
                return call_vtk(self, method['name'], args)
            else:
                raise AttributeError("Cannot find VTK name '%s'" % name)

        return call_vtk(self, method, args)
github MICA-MNI / BrainSpace / brainspace / vtk_interface / wrappers.py View on Github external
def _handle_call(self, key, name, args):
        method = self.vtk_map[key][name.lower()]
        # obj = self.VTKObject
        # if method in self._override:
        #     obj = self
        if isinstance(method, dict):
            if isinstance(args, str) and args.lower() in method['options']:
                return call_vtk(self, method['options'][args.lower()])
            elif 'name' in method:
                return call_vtk(self, method['name'], args)
            else:
                raise AttributeError("Cannot find VTK name '%s'" % name)

        return call_vtk(self, method, args)