mirpy

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

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

Previous

Return to Other Tools

Who is online

Users browsing this forum: No registered users and 0 guests

cron