Do you use (or want to use) other tools to reduce ATCA data?

Moderator: Mark.Wieringa

Re: mirpy

Postby ste616 » Wed Dec 04, 2019 8:54 am

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')


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
Jamie Stevens
ATCA Senior System Scientist
Site Admin
Posts: 219
Joined: Thu Feb 04, 2010 3:27 pm
Location: Paul Wild Observatory Narrabri NSW


Return to Other Tools

Who is online

Users browsing this forum: No registered users and 1 guest