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

Method remove

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

Source from the content-addressed store, hash-verified

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)
336 keys, value = self.walk_recursively_to_root(item)
337 if item.parent() and item.childCount(): # Handle nested dict or list
338 keys = [keys[0], value]
339 success = self.remove_key(self.cfg, keys, ind)
340 if success:
341 parent.removeChild(item)
342
343 def remove_items(self):
344 for item in self.tree.selectedItems():

Callers 15

remove_itemsMethod · 0.95
dfsFunction · 0.80
erase_artistsFunction · 0.80
__init__Method · 0.80
create_new_projectFunction · 0.80
remove_jointMethod · 0.80
build_assembliesMethod · 0.80
_assembleMethod · 0.80
match_assembliesFunction · 0.80
reconstruct_all_bboxesFunction · 0.80
_mapFunction · 0.80

Calls 3

remove_keyMethod · 0.95

Tested by

no test coverage detected