Ignore:
Timestamp:
02/17/05 14:46:17 (19 years ago)
Author:
mar637
Message:

Added SDFitTable to handle fits and expose them to python vi the sdfit class.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/SDMemTableWrapper.h

    r457 r465  
    3636#include <casa/Arrays/Vector.h>
    3737
     38#include "MathUtils.h"
     39#include "SDFitTable.h"
    3840#include "SDMemTable.h"
    3941
     
    195197    casa::Vector<casa::Double> p2(p);
    196198    casa::Vector<casa::Bool> m2(m);
    197     casa::Vector<casa::String> f2(f.size());
    198     casa::uInt i=0;
    199     std::vector<std::string>::const_iterator it;
    200     for (it=f.begin();it != f.end();++it) {
    201       f2[i] = casa::String(*it);
    202     }
     199    casa::Vector<casa::String> f2 = mathutil::toVectorString(f);
    203200    casa::Vector<casa::Int> c2(c);
    204201    table_->addFit(casa::uInt(whichRow), p2,m2,f2,c2);
    205202  }
     203  SDFitTable getSDFitTable(int whichRow) {
     204    return table_->getSDFitTable(casa::uInt(whichRow));
     205  }
     206
    206207
    207208private:
Note: See TracChangeset for help on using the changeset viewer.