Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
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)
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)
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)