Changeset 158


Ignore:
Timestamp:
12/26/04 21:57:09 (20 years ago)
Author:
kil064
Message:

Correct spelling 'abscissa' -> 'abcissa'

Location:
trunk
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/python/asapfitter.py

    r123 r158  
    3131    def set_data(self, xdat, ydat, mask=None):
    3232        """
    33         Set the abscissa and ordinate for the fit. Also set the mask
     33        Set the absissa and ordinate for the fit. Also set the mask
    3434        indicationg valid points.
    3535        This can be used for data vectors retrieved from a scantable.
    3636        For scantable fitting use 'fitter.set_scan(scan, mask)'.
    3737        Parameters:
    38             xdat:    the abscissa values
     38            xdat:    the abcissa values
    3939            ydat:    the ordinate values
    4040            mask:    an optional mask
     
    110110        else:
    111111            if self.data is not None:
    112                 self.x = self.data.getabscissa()
     112                self.x = self.data.getabcissa()
    113113                self.y = self.data.getspectrum()
    114114                print "Fitting:"
     
    229229        self._p.clear()
    230230        tlab = 'Spectrum'
    231         xlab = 'Abscissa'
     231        xlab = 'Abcissa'
    232232        if self.data:
    233233            tlab = self.data._getsourcename(0)
    234             xlab = self.data.getabscissalabel(0)
     234            xlab = self.data.getabcissalabel(0)
    235235        ylab = r'Flux'
    236236        m = self.data.getmask(0)
     
    268268                for k in range(scan.npol()):
    269269                    scan.setpol(k)
    270                     self.x = scan.getabscissa()
     270                    self.x = scan.getabcissa()
    271271                    self.y = scan.getspectrum()
    272272                    self.data = None
  • trunk/python/scantable.py

    r156 r158  
    293293        return unit
    294294
    295     def get_abscissa(self, rowno=0):
    296         """
    297         Get the abscissa in the current coordinate setup for the currently
     295    def get_abcissa(self, rowno=0):
     296        """
     297        Get the abcissa in the current coordinate setup for the currently
    298298        selected Beam/IF/Pol
    299299        Parameters:
    300300            none
    301301        Returns:
    302             The abscissa values and it's format string.
    303         """
    304         absc = self.getabscissa(rowno)
    305         lbl = self.getabscissalabel(rowno)
    306         return absc, lbl
     302            The abcissa values and it's format string.
     303        """
     304        abc = self.getabcissa(rowno)
     305        lbl = self.getabcissalabel(rowno)
     306        return abc, lbl
    307307
    308308    def create_mask(self, *args, **kwargs):
     
    336336            print "The current mask window unit is", u
    337337        n = self.nchan()
    338         data = self.getabscissa()
     338        data = self.getabcissa()
    339339        msk = ones(n)
    340340        for  window in args:
     
    443443                        y.append(self._gettsys(k))
    444444                else:
    445                     x,xlab = self.get_abscissa(i)
     445                    x,xlab = self.get_abcissa(i)
    446446                    y = self.getspectrum(i)
    447447                    ylab = r'Flux'
  • trunk/src/SDMemTable.cc

    r148 r158  
    321321}
    322322
    323 std::vector<double> SDMemTable::getAbscissa(Int whichRow) {
     323std::vector<double> SDMemTable::getAbcissa(Int whichRow) {
    324324  std::vector<double> absc(nChan());
    325325  Vector<Double> absc1(nChan());
     
    416416}
    417417
    418 std::string SDMemTable::getAbscissaString(Int whichRow)
     418std::string SDMemTable::getAbcissaString(Int whichRow)
    419419{
    420420  ROArrayColumn<uInt> fid(table_, "FREQID");
     
    864864      oss << "None set" << endl;
    865865  }
    866   oss << setw(15) << "Abscissa:" << getAbscissaString() << endl;
     866  oss << setw(15) << "Abcissa:" << getAbcissaString() << endl;
    867867  oss << setw(15) << "Cursor:" << "Beam[" << getBeam() << "] "
    868868      << "IF[" << getIF() << "] " << "Pol[" << getPol() << "]" << endl;
  • trunk/src/SDMemTable.h

    r154 r158  
    152152  casa::Int nCoordinates() const;
    153153
    154   std::vector<double> getAbscissa(int whichRow=0);
    155   std::string getAbscissaString(casa::Int whichRow=0);
     154  std::vector<double> getAbcissa(int whichRow=0);
     155  std::string getAbcissaString(casa::Int whichRow=0);
    156156
    157157private:
  • trunk/src/SDMemTableWrapper.h

    r157 r158  
    7676  }
    7777
    78   std::vector<double> getAbscissa(int whichRow=0) const {
    79     return table_->getAbscissa(whichRow);
     78  std::vector<double> getAbcissa(int whichRow=0) const {
     79    return table_->getAbcissa(whichRow);
    8080  }
    81   std::string getAbscissaString(int whichRow=0) const {
    82     return table_->getAbscissaString(whichRow);
     81  std::string getAbcissaString(int whichRow=0) const {
     82    return table_->getAbcissaString(whichRow);
    8383  }
    8484
  • trunk/src/python_SDMemTable.cc

    r157 r158  
    5252    .def("getspectrum", &SDMemTableWrapper::getSpectrum,
    5353         (boost::python::arg("whichRow")=0) )
    54     .def("getabscissa", &SDMemTableWrapper::getAbscissa,
     54    .def("getabcissa", &SDMemTableWrapper::getAbcissa,
    5555         (boost::python::arg("whichRow")=0) )
    56     .def("getabscissalabel", &SDMemTableWrapper::getAbscissaString,
     56    .def("getabcissalabel", &SDMemTableWrapper::getAbcissaString,
    5757         (boost::python::arg("whichRow")=0) )
    5858    .def("getmask", &SDMemTableWrapper::getMask,
Note: See TracChangeset for help on using the changeset viewer.