projects
/
pysvrt.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ce165da
)
Update.
author
Francois Fleuret
<francois@fleuret.org>
Wed, 21 Jun 2017 17:58:52 +0000
(19:58 +0200)
committer
Francois Fleuret
<francois@fleuret.org>
Wed, 21 Jun 2017 17:58:52 +0000
(19:58 +0200)
svrtset.py
patch
|
blob
|
history
diff --git
a/svrtset.py
b/svrtset.py
index
8f03f37
..
54c4dec
100755
(executable)
--- a/
svrtset.py
+++ b/
svrtset.py
@@
-136,8
+136,8
@@
class CompressedVignetteSet:
raise
mem = (resource.getrusage(resource.RUSAGE_SELF).ru_maxrss - usage) * 1024
- print('Using
' + str(mem / (1024 * 1024 * 1024)) + 'Gb / ' +
-
str(mem / self.nb_samples) + ' bytes per sample'
)
+ print('Using
{:.02f}Gb total {:.02f}b / samples'
+
.format(mem / (1024 * 1024 * 1024), mem / self.nb_samples)
)
self.mean = acc / self.nb_batches
self.std = sqrt(acc_sq / self.nb_batches - self.mean * self.mean)