@@ -176,7 +176,7 @@ class MetalWallsCheck(rfm.RunOnlyRegressionTest):
176176 #: Parameter pack encoding the benchmark information.
177177 #:
178178 #: The first element of the tuple refers to the benchmark name,
179- #: the second is the final kinetic energy the third is the related
179+ #: the second is the final kinetic energy the third is the related
180180 #: tolerance, the fourth is the absolute temperature and the fifth is
181181 #: the related tolerance
182182 #:
@@ -213,22 +213,21 @@ def total_elapsed_time(self):
213213 return sn .extractsingle (
214214 r'Total elapsed time:\s+(?P<time>\S+)' , 'run.out' , 'time' , float
215215 )
216-
216+
217217 @sn .deferrable
218218 def extract_kinetic_energy (self ):
219219 """Extract the final kinetic energy from the output file"""
220220 rgx = r'\|step\| +kinetic energy: +(?P<flag>\S+)'
221221 app = sn .extractall (rgx , 'run.out' , 'flag' , float )
222222 return app [- 1 ]
223-
223+
224224 @sn .deferrable
225225 def extract_temperature (self ):
226226 """Extract the final temperature from the output file"""
227227 rgx = r'\|step\| +temperature: +(?P<flag>\S+)'
228228 app = sn .extractall (rgx , 'run.out' , 'flag' , float )
229229 return app [- 1 ]
230230
231-
232231 @performance_function ('s' )
233232 def extract_time (
234233 self , name : str = None , parent : str = None , kind : str = None
@@ -242,7 +241,7 @@ def extract_time(
242241 """
243242 if kind is None :
244243 return 0
245-
244+
246245 kind = kind .lower ()
247246 if kind == 'avg' :
248247 tag = 1
0 commit comments