- in ftnstr() the argument coming in is not a python string but an

array (from fortran), it should be converted to string before using it as one.

  This fixes the odd zeros() problem.



git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/trunk@92 ab8295b8-cf94-4d9e-aec4-7959e3be5d79
This commit is contained in:
Diane Bruce 2006-01-13 06:37:11 +00:00
parent 22c1dc6c79
commit 66f86c3d65
1 changed files with 3 additions and 2 deletions

5
g.py
View File

@ -10,8 +10,9 @@ showspecjt=0
#------------------------------------------------------ ftnstr
def ftnstr(x):
y=""
for i in range(len(x)):
y=y+x[i]
xs=x.tostring()
for i in range(len(xs)):
y=y+xs[i]
return y
#------------------------------------------------------ filetime