MCPcopy
hub / github.com/treeverse/dvc / group_definitions

Method group_definitions

dvc/render/match.py:35–41  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

33 self.data = data
34
35 def group_definitions(self):
36 groups = defaultdict(list)
37 for rev, rev_content in self.data.items():
38 definitions = rev_content.get("definitions", {}).get("data", {})
39 for plot_id, definition in group_definitions_by_id(definitions).items():
40 groups[plot_id].append((rev, *definition))
41 return dict(groups)
42
43 def get_definition_data(self, target_files, rev):
44 result = {}

Callers 2

match_defs_renderersFunction · 0.95
test_group_definitionsFunction · 0.80

Calls 5

group_definitions_by_idFunction · 0.90
dictClass · 0.85
itemsMethod · 0.80
appendMethod · 0.80
getMethod · 0.45

Tested by 1

test_group_definitionsFunction · 0.64