Dear all, I find that the variable 'self.stelap' in progress_bar.py means 
the elapsed simulation times*, however, * 'self.stelap = self.stcurr - 
self.strtrt' is confused. Is ''self.strtrt' should be replaced with 
'self.ststrt'?

 class ProgressBar(object):

def __init__(self, start, curr, end, dps=2):

        self.ststrt = start
>         self.strtrt = curr
>         self.stend = end
>         self.dps = dps
>         self._wstart = time.time()
>         self._last_wallt = 0.0
>         self._ncol = shutil.get_terminal_size()[0] or 80
>         self._nbarcol = self._ncol - 24 - 2*len('{:.{}f}'.format(end, dps))
>         self.advance_to(curr)
>     def advance_to(self, t):
>         self.stcurr = min(t, self.stend)
>         self.stelap = self.stcurr - self.strtrt

-- 
You received this message because you are subscribed to the Google Groups "PyFR 
Mailing List" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web, visit 
https://groups.google.com/d/msgid/pyfrmailinglist/724f722b-da6c-4852-b5eb-098577160594o%40googlegroups.com.

Reply via email to