Changeset 2474


Ignore:
Timestamp:
04/20/12 22:08:45 (13 years ago)
Author:
Kana Sugimoto
Message:

New Development: No

JIRA Issue: No (a bug fix)

Ready for Test: Yes

Interface Changes: No

What Interface Changed:

Test Programs: run sdsmooth unit tests with sd.rcParamsinsitu = False

Put in Release Notes: No

Module(s):

Description:

fxied a bug which caused STMath::convertFlux modify original data but not a data to return.


File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/STMath.cpp

    r2467 r2474  
    22002200  CountedPtr< Scantable > out = getScantable(in, false);
    22012201  Table& tab = in->table();
     2202  Table& outtab = out->table();
    22022203  Unit fluxUnit(tab.keywordSet().asString("FluxUnit"));
    22032204  Unit K(String("K"));
     
    22362237    oss << "Jy/K = " << jyperk;
    22372238    pushLog(String(oss));
    2238     Vector<Float> factors(tab.nrow(), factor);
    2239     scaleByVector(tab,factors, false);
     2239    Vector<Float> factors(outtab.nrow(), factor);
     2240    scaleByVector(outtab,factors, false);
    22402241  } else if ( etaap > 0.0) {
    22412242    if (d < 0) {
     
    22542255      factor = 1.0 / factor;
    22552256    }
    2256     Vector<Float> factors(tab.nrow(), factor);
    2257     scaleByVector(tab, factors, False);
     2257    Vector<Float> factors(outtab.nrow(), factor);
     2258    scaleByVector(outtab, factors, False);
    22582259  } else {
    22592260
Note: See TracChangeset for help on using the changeset viewer.