From c372fe7c35ac9ebf0863f257d94e976811f7375a Mon Sep 17 00:00:00 2001 From: Dmitry Date: Mon, 4 Sep 2017 12:04:19 -0700 Subject: [PATCH] Refactoring: small renaming --- dvc/graph/commit.py | 2 +- dvc/graph/workflow.py | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/dvc/graph/commit.py b/dvc/graph/commit.py index 1a3b85bc6..8dacfae38 100644 --- a/dvc/graph/commit.py +++ b/dvc/graph/commit.py @@ -70,6 +70,6 @@ class Commit(object): def branch_tips(self): return self._branch_tips - def add_branch_typs(self, tips): + def add_branch_tips(self, tips): for tip in tips: self._branch_tips.append(tip) diff --git a/dvc/graph/workflow.py b/dvc/graph/workflow.py index ead5e19a7..9bbd20b91 100644 --- a/dvc/graph/workflow.py +++ b/dvc/graph/workflow.py @@ -92,7 +92,7 @@ class Workflow(object): child_commit_hashes = self._edges.get(commit.hash) if child_commit_hashes and all(self._commits[hash].is_repro for hash in child_commit_hashes): - self._upstream_metric(child_commit_hashes, commit) + self._upstream_metrics(child_commit_hashes, commit) for hash in child_commit_hashes: self._commits[hash].add_parents(commit.parent_hashes) @@ -107,7 +107,7 @@ class Workflow(object): return False pass - def _upstream_metric(self, child_commit_hashes, commit): + def _upstream_metrics(self, child_commit_hashes, commit): if commit.has_target_metric: for hash in child_commit_hashes: if not self._commits[hash].has_target_metric: @@ -115,7 +115,7 @@ class Workflow(object): if commit.branch_tips: for hash in child_commit_hashes: - self._commits[hash].add_branch_typs(commit.branch_tips) + self._commits[hash].add_branch_tips(commit.branch_tips) pass @staticmethod