Commit b2690f18 authored by Médéric Boquien's avatar Médéric Boquien

The time spent computing is now displayed in hours, minutes, and seconds...

The time spent computing is now displayed in hours, minutes, and seconds rather than just seconds to improve legibility
parent 846db42c
......@@ -14,6 +14,7 @@
- The colours in the SED plots have been tweaked for aesthetic reasons. (Médéric Boquien)
- The markers for the observed fluxes in the SED plots have been tweaked to improve readability. (Médéric Boquien)
- The computation of all the cosmology-dependent quantities has been consolidated in pcigale/utils/cosmology.py and optimised. This leads to a slightly faster startup, in particular when there are many objects to fit, and it makes it easier to change the cosmology. (Médéric Boquien)
- The time spent computing is now displayed in hours, minutes, and seconds rather than just seconds to improve legibility. (Médéric Boquien)
### Fixed
- Make sure we can plot the PDF of equivalent widths. (Médéric Boquien)
- Fix a crash when generating a mock catalogue containing intensive properties. (Médéric Boquien)
......
......@@ -46,5 +46,8 @@ class Counter:
def pprint(self, n):
dt = time.time() - self.t0
print(f"{n}/{self.nmodels} performed in {dt:.1f} seconds ({n/dt:.1f}/s)",
s = round(dt % 60, 1)
m = round((dt // 60) % 60)
h = round(dt // 3600)
print(f"{n}/{self.nmodels} in {h:02}:{m:02}:{s:04.1f} ({n/dt:.1f}/s)",
end="\n" if n == self.nmodels else "\r")
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment