From 66f86c3d659bc34dc8ebdf23406d0b394256d6df Mon Sep 17 00:00:00 2001 From: Diane Bruce Date: Fri, 13 Jan 2006 06:37:11 +0000 Subject: [PATCH] - 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 --- g.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/g.py b/g.py index 0c5f286be..565ef7b07 100644 --- a/g.py +++ b/g.py @@ -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