Changeset 2445 for trunk/src


Ignore:
Timestamp:
03/29/12 12:37:19 (13 years ago)
Author:
Malte Marquarding
Message:

Temporary fix for divergence of casacore and casapy

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/STFitter.cpp

    r2444 r2445  
    118118    g = dynamic_cast<Gaussian1D<Float>* >(funcs_[i]);
    119119    if (g) {
     120#ifdef USE_CASAPY
     121      const GaussianSpectralElement *gauss =
     122        dynamic_cast<const GaussianSpectralElement *>(listGauss[i]) ;
     123      (*g)[0] = gauss->getAmpl();
     124      (*g)[1] = gauss->getCenter();
     125      (*g)[2] = gauss->getFWHM();     
     126#else     
    120127      (*g)[0] = listGauss[i].getAmpl();
    121128      (*g)[1] = listGauss[i].getCenter();
    122129      (*g)[2] = listGauss[i].getFWHM();
     130#endif
    123131    }
    124132  }
Note: See TracChangeset for help on using the changeset viewer.