Opened 18 years ago

Closed 18 years ago

#104 closed defect (fixed)

segmentation fault for time average

Reported by: anonymous Owned by: Malte Marquarding
Priority: normal Milestone: ASAP 2.1
Component: General Version: 2.0
Severity: normal Keywords:
Cc:

Description

ASAP closes and reports a segmentation fault after I issue a time average command. I've listed here the process I'm using to get there, and the result from ASAP:


a=scantable('2006-10-04_1924-M165.rpf')
sel=selector()

execfile("vanvleckflag.py")
vanvleck_flag(a,20)

r = a.get_scan('*_R')
s = a.get_scan('*[^_R]')
q = quotient(s,r)
q.set_unit()

sel.reset()
mask=q.create_mask([1500,6000])

q.set_unit('GHz')

q.poly_baseline(order=0,mask=mask)
q.flag(mask)
q.flag(mask_not(mask))

q.set_selection()
sel = selector()
sel.set_ifs(3)
q.set_selection(sel)
tav=q.average_time()

/usr/local/bin/asap: line 54: 24596 Segmentation fault $ip -ipythondir "${HOME}/.asap" -p 'asap' $*

Change History (2)

comment:1 by Malte Marquarding, 18 years ago

Status: newassigned

You are trying to average data which is completely flagged.

q.flag(mask)
q.flag(mask_not(mask))

This shouldn't make asap crash though.

comment:2 by Malte Marquarding, 18 years ago

Resolution: fixed
Status: assignedclosed

Fixed in trunk. This has a (small) performance penalty.

Note: See TracTickets for help on using tickets.