Ignore:
Timestamp:
01/31/13 18:55:29 (11 years ago)
Author:
Takeshi Nakazato
Message:

New Development: No

JIRA Issue: Yes CAS-4770

Ready for Test: Yes

Interface Changes: No

What Interface Changed: Please list interface changes

Test Programs: test_sdcal2

Put in Release Notes: No

Module(s): Module Names change impacts.

Description: Describe your changes here...

Replace assert with casa::assert_ to avoid aborting casapy session.


File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/PSAlmaCalibrator.cpp

    r2720 r2756  
    1111//
    1212#include <assert.h>
     13
     14#include <casa/Exceptions/Error.h>
     15#include <casa/Utilities/Assert.h>
    1316
    1417#include "PSAlmaCalibrator.h"
     
    2831void PSAlmaCalibrator::calibrate()
    2932{
    30   assert(source_);
    31   assert(ref_);
    32   assert(scaler_);
    33   assert(calibrated_);
     33  //assert(source_);
     34  //assert(ref_);
     35  //assert(scaler_);
     36  //assert(calibrated_);
     37  assert_<AipsError>(source_, "Source spectrum is null.");
     38  assert_<AipsError>(ref_, "Reference spectrum is null.");
     39  assert_<AipsError>(scaler_, "Scaling factor is null.");
     40  assert_<AipsError>(calibrated_, "Calibrated spectrum is null.");
    3441
    3542  Float *p_s = source_;
Note: See TracChangeset for help on using the changeset viewer.