Commits

Takahiro Tsutsumi authored 206a1b8d128
        New Development: No             JIRA Issue: No         Ready for Test: Yes      Interface Changes: No What Interface Changed: Please list interface changes          Test Programs: List test programs   Put in Release Notes: No              Module(s): Module Names change impacts.            Description: Added an exception handling when                          a non-suported model was requested                         in SS object setjy 

No tags

gcwrap/python/scripts/setjy_helper.py

Modified
480 480 #print "Using complist=",cl2010
481 481 #self.im.ft(complist=cl2010)
482 482
483 483 #if cleanupcomps:
484 484 # shutil.rmtree(clname)
485 485 #self.clnamelist.append(clname)
486 486 self.clnamelist.append(clname)
487 487
488 488 msg="Using channel dependent " if scalebychan else "Using spw dependent "
489 489
490 + if clrecs=={}:
491 + raise Exception, "No componentlist is generated."
490 492 self._casalog.post(msg+" flux densities")
491 493 #self._reportoLog(clrecs,self._casalog)
492 494 self._reportoLog2(clrecs,self._casalog)
493 495 #self._updateHistory(clrecs,self.vis)
494 496 self._updateHistory2(clrecs,self.vis)
495 497 # dictionary of dictionary for each field
496 498 retdict[vfid]=clrecs
497 499 # ==== end of for loop over fields
498 500 #output=self._makeRetFluxDict(retdict)
499 501 output=self._makeRetFluxDict2(retdict)

Everything looks good. We'll let you know here if there's anything you should know about.

Add shortcut