Page 2 of 2

Re: mirpy

Posted: Wed Dec 04, 2019 8:54 am
by ste616
Hi Brodie,

I'm afraid I cannot replicate your issue. With code virtually identical to yours, using Python 2.7, I get no TypeError:

Code: Select all

# This is test.py
from mirpy import miriad

def atlod_filter(output):
  return output.split('\n')

ddir='/home/ste616/Work/CX424/*.CX424'

miriad.set_filter('atlod', atlod_filter)
atlodLines=miriad.atlod(In=ddir, out='uvdata', options='birdie,rfiflag,xycorr,opcorr,noauto')

print "Output had %d lines" % len(atlodLines)

Code: Select all

ste616@jamieubun-cl: [CX424]
 $ python test.py 
Output had 265 lines