Opened 19 years ago

Closed 18 years ago

#37 closed defect (fixed)

reader.read error

Reported by: ttsutsum@… Owned by: Malte Marquarding
Priority: normal Milestone: ASAP2 release
Component: General Version: 2.0
Severity: normal Keywords:
Cc: ttsutsum@…

Description

when I tried reader.read I got an error saying 'integrations' is used before assignment. (Note: since I am running ASAP2.0 from CASA new framework the output shown below may be different as the standard ASAP. I am also using python2.4.3.)

ttsutsum@minor[data]|7> scan=r.read()


exceptions.UnboundLocalError Traceback (most recent call last)

/export/home/minor/alma/asaptest/data/<console>

/usr/lib/python2.4/site-packages/asap/asapreader.py in read(self)

56 from asap import scantable 57 from asap import asaplog

---> 58 if integrations is None:

59 integrations = [-1] 60 asaplog.push("Reading integrations from disk...")

UnboundLocalError: local variable 'integrations' referenced before assignment

/usr/lib/python2.4/site-packages/asap/asapreader.py(58)read()

-> if integrations is None: ---

Tak Tsutsumi

Change History (1)

comment:1 by Malte Marquarding, 18 years ago

Cc: ttsutsum@… added
Resolution: fixed
Status: newclosed

This was a remnant argumrnt form asap1.

Note: See TracTickets for help on using tickets.