Page 2 of 2

Re: mirpy

PostPosted: 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
from mirpy import miriad

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


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
Output had 265 lines