From dab38d731ca8bf69ef41985ff5cc480d64659368 Mon Sep 17 00:00:00 2001 From: John Kacur Date: Thu, 7 May 2020 04:40:33 -0400 Subject: [PATCH 15/17] rteval/rtevalReport.py: Some style changes suggested by pylint-3 Some style changes suggested by pylint-3 Signed-off-by: John Kacur --- rteval/rtevalReport.py | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/rteval/rtevalReport.py b/rteval/rtevalReport.py index a18dd41b36fc..062cc5efb86f 100644 --- a/rteval/rtevalReport.py +++ b/rteval/rtevalReport.py @@ -29,7 +29,7 @@ from datetime import datetime from . import xmlout -class rtevalReport(object): +class rtevalReport: def __init__(self, rtev_version, installdir, annotate): self.__version = rtev_version self.__installdir = installdir @@ -48,10 +48,14 @@ class rtevalReport(object): duration = datetime.now() - measure_start seconds = duration.seconds + hours = int(seconds / 3600) - if hours: seconds -= (hours * 3600) + if hours: + seconds -= (hours * 3600) + minutes = int(seconds / 60) - if minutes: seconds -= (minutes * 60) + if minutes: + seconds -= (minutes * 60) # Start new XML report self.__xmlreport = xmlout.XMLOut('rteval', self.__version) @@ -138,4 +142,3 @@ class rtevalReport(object): t.close() except: os.chdir(cwd) - -- 2.21.3