mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-27 13:45:36 -04:00
Use older style ndarray.tostring() rather than ndarray.tobytes()
This commit is contained in:
parent
d2df222c52
commit
a31a121504
1 changed files with 4 additions and 4 deletions
|
|
@ -52,10 +52,10 @@ class PlotTestHarness(TestHarness):
|
|||
for fname in sorted(voxel_files):
|
||||
with h5py.File(fname, 'r') as fh:
|
||||
outstr += fh['filetype'].value
|
||||
outstr += fh['num_voxels'].value.tobytes()
|
||||
outstr += fh['lower_left'].value.tobytes()
|
||||
outstr += fh['voxel_width'].value.tobytes()
|
||||
outstr += fh['data'].value.tobytes()
|
||||
outstr += fh['num_voxels'].value.tostring()
|
||||
outstr += fh['lower_left'].value.tostring()
|
||||
outstr += fh['voxel_width'].value.tostring()
|
||||
outstr += fh['data'].value.tostring()
|
||||
|
||||
# Hash the information and return.
|
||||
sha512 = hashlib.sha512()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue