Skip to content

Commit a8683e1

Browse files
committed
FIX: replace zip with numpy.transpose in numpy.savetxt
1 parent 1fe526a commit a8683e1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

diffpy/pdfmorph/pdfmorphapp.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
import os
1818
import os.path
1919

20-
20+
import numpy
2121
from diffpy.pdfmorph import __version__
2222
import diffpy.pdfmorph.tools as tools
2323
import diffpy.pdfmorph.pdfplot as pdfplot
@@ -247,8 +247,8 @@ def main():
247247
else:
248248
outfile = open(opts.savefile, 'w')
249249
print(header, file=outfile)
250-
import numpy
251-
numpy.savetxt(outfile, zip(chain.xobjout, chain.yobjout))
250+
numpy.savetxt(outfile, numpy.transpose([chain.xobjout,
251+
chain.yobjout]))
252252
outfile.close()
253253

254254
if opts.plot:

0 commit comments

Comments
 (0)