MCPcopy Create free account
hub / github.com/vispy/vispy / insert

Method insert

vispy/visuals/shaders/function.py:687–692  ·  view source on GitHub ↗

Insert a new function into the chain at *index*.

(self, index, function, update=True)

Source from the content-addressed store, hash-verified

685 return self.functions[k]
686
687 def insert(self, index, function, update=True):
688 """Insert a new function into the chain at *index*."""
689 self._funcs.insert(index, function)
690 self._add_dep(function)
691 if update:
692 self._update()
693
694 def remove(self, function, update=True):
695 """Remove a function from the chain."""

Callers 15

_do_pending_writesMethod · 0.45
triangulateMethod · 0.45
curve3_bezierFunction · 0.45
curve4_bezierFunction · 0.45
rawmethodMethod · 0.45
methodMethod · 0.45
classmethodMethod · 0.45
compileMethod · 0.45
prependMethod · 0.45
_save_failed_testFunction · 0.45
downsampleFunction · 0.45
connectMethod · 0.45

Calls 2

_updateMethod · 0.95
_add_depMethod · 0.80

Tested by 2

_save_failed_testFunction · 0.36
downsampleFunction · 0.36