plots: introduce flexible plots configuration to dvcfiles

Closes: #7086
This commit is contained in:
Paweł Redzyński
2022-07-01 13:17:24 +02:00
parent f42beb4433
commit fbb98a87d1
28 changed files with 1890 additions and 1122 deletions
+11
View File
@@ -0,0 +1,11 @@
import dpath.util
dpath.options.ALLOW_EMPTY_STRING_KEYS = True
def get_plot(plots_data, revision, typ="sources", file=None, endkey="data"):
if file is not None:
return dpath.util.get(
plots_data, [revision, typ, "data", file, endkey]
)
return dpath.util.get(plots_data, [revision, typ, endkey])