MCPcopy Index your code
hub / github.com/DeepLabCut/DeepLabCut / insert

Method insert

deeplabcut/gui/widgets.py:322–332  ·  view source on GitHub ↗
(self, item)

Source from the content-addressed store, hash-verified

320 return index, parent
321
322 def insert(self, item):
323 current = self.tree.selectedItems()[0]
324 ind, parent = self.get_position_in_parent(current)
325 parent.insertChild(ind + 1, item)
326
327 value = self.cast_to_right_type(item.text(1))
328 if parent is self.root:
329 self.set_value(self.cfg, [item.text(0)], value)
330 else:
331 keys, _ = self.walk_recursively_to_root(current)
332 self.set_value(self.cfg, keys, value, ind + 1)
333
334 def remove(self, item):
335 ind, parent = self.get_position_in_parent(item)

Callers 12

triangulateFunction · 0.80
_generic2madlcFunction · 0.80
create_new_project_3dFunction · 0.80
_benchmark_paf_graphsFunction · 0.80
fill_trackletsFunction · 0.80
swapMethod · 0.80
set_valueMethod · 0.80
calc_completenessMethod · 0.80
load_selector_moduleFunction · 0.80

Calls 4

cast_to_right_typeMethod · 0.95
set_valueMethod · 0.95

Tested by 1

load_selector_moduleFunction · 0.64