mirror of
https://github.com/Stone-Red-Code/dvc.git
synced 2026-11-19 15:28:28 +01:00
dvc: introduce -m option for repro
Fixes #188 Signed-off-by: Ruslan Kuprieiev <[email protected]>
This commit is contained in:
+5
-10
@@ -3,16 +3,11 @@ from dvc.command.common.base import CmdBase
|
||||
|
||||
class CmdMetricsShow(CmdBase):
|
||||
def run(self):
|
||||
res = self.project.metrics_show(self.args.path,
|
||||
json_path=self.args.json_path,
|
||||
tsv_path=self.args.tsv_path,
|
||||
htsv_path=self.args.htsv_path,
|
||||
all_branches=self.args.all_branches)
|
||||
for branch, val in res.items():
|
||||
self.project.logger.info('{}:'.format(branch))
|
||||
for fname, metric in val.items():
|
||||
self.project.logger.info('\t{}: {}'.format(fname, metric))
|
||||
|
||||
self.project.metrics_show(self.args.path,
|
||||
json_path=self.args.json_path,
|
||||
tsv_path=self.args.tsv_path,
|
||||
htsv_path=self.args.htsv_path,
|
||||
all_branches=self.args.all_branches)
|
||||
return 0
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user