Skip to content
Snippets Groups Projects
Commit f5dbef87 authored by David Verelst's avatar David Verelst
Browse files

prepost.windIO: python34 compat: encode to bytes after int substitution

parent 246ac8b7
No related branches found
No related tags found
No related merge requests found
Pipeline #
......@@ -1858,7 +1858,8 @@ class UserWind(object):
'nr_vert: %i' % (str(u.shape), nr_hor, nr_vert))
fid.write(b'# User defined shear file\n')
fid.write(b'%i %i # nr_hor (v), nr_vert (w)\n' % (nr_hor, nr_vert))
tmp = '%i %i # nr_hor (v), nr_vert (w)\n' % (nr_hor, nr_vert)
fid.write(tmp.encode())
h1 = b'normalized with U_mean, nr_hor (v) rows, nr_vert (w) columns'
fid.write(b'# v component, %s\n' % h1)
np.savetxt(fid, v, fmt=fmt_uvw, delimiter=' ')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment