Skip to content

Commit

Permalink
util: now dumping to npz
Browse files Browse the repository at this point in the history
  • Loading branch information
madsbk committed May 22, 2018
1 parent 1b337ac commit 5cfeab8
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions benchpress/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -421,16 +421,16 @@ def goodbye():
if visualization_trace and bh_is_loaded_as_np:
orgs = np.stack(visualization_trace['org'])
del visualization_trace['org']
fname = "vtrace_org.dump"
print("Writing visualization trace file: %s (%s)" % (fname, orgs.shape))
orgs.dump(fname)
fname = "vtrace_org"
print("Writing visualization trace file: %s.npy (%s)" % (fname, orgs.shape))
np.save(fname, orgs)
del orgs

zips = np.stack(visualization_trace['zip'])
del visualization_trace['zip']
fname = "vtrace_zip.dump"
print("Writing visualization trace file: %s (%s)" % (fname, zips.shape))
zips.dump(fname)
fname = "vtrace_zip"
print("Writing visualization trace file: %s.npy (%s)" % (fname, zips.shape))
np.save(fname, zips)
del zips

from bohrium import _bh
Expand Down

0 comments on commit 5cfeab8

Please sign in to comment.