Skip to content

Commit

Permalink
population_template: write linear transformation in txt mode, not binary
Browse files Browse the repository at this point in the history
  • Loading branch information
maxpietsch committed Nov 29, 2017
1 parent 21f3d91 commit 068f4bc
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions bin/population_template
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,7 @@ except ImportError:
def savetxt(fname, X, delimiter=" ", fmt="%.14e"):
import sys
try:
if sys.version_info[0] >= 3:
fh = open(fname, 'wb')
else:
fh = open(fname, 'w')
fh = open(fname, 'w')
if len(X) == 1:
ncol = 1
else:
Expand Down

0 comments on commit 068f4bc

Please sign in to comment.