From 2fd1e8b804b8ef84348aa3b7bf5a1af0114092bf Mon Sep 17 00:00:00 2001 From: Redmar Date: Thu, 11 Jun 2020 15:42:34 +0200 Subject: [PATCH] Convert indentation to tabs instead of spaces --- fuma/ComparisonTriangle.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/fuma/ComparisonTriangle.py b/fuma/ComparisonTriangle.py index 0b2c8a1..bafb173 100644 --- a/fuma/ComparisonTriangle.py +++ b/fuma/ComparisonTriangle.py @@ -147,10 +147,10 @@ def prune_duplicates(self,merged_fusions): def log_progress(self,n_total, passed, previous_percentage): # Print percentage - doesn't entirely fit yet - try: - percentage = 100.0 * (float(passed) / float(n_total)) - except ZeroDivisionError: - percentage = 100.0 + try: + percentage = 100.0 * (float(passed) / float(n_total)) + except ZeroDivisionError: + percentage = 100.0 if percentage >= previous_percentage + 5.0 or passed == n_total:# Repport each 5% self.logger.debug(str(round(percentage,1))+"% completed") previous_percentage = percentage