I highlighted the keywords as follow:
> Dear all, 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/5b36b4e2-558b-42b1-b869-b0e037ceab77o%40googlegroups.com.