Changeset 1156 for trunk


Ignore:
Timestamp:
08/21/06 15:49:24 (18 years ago)
Author:
mar637
Message:

changed name set_freq_limits to set_frequency_limits

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/python/linecatalog.py

    r1154 r1156  
    6565            raise ValueError("%s is not a valid unit." % unit)
    6666        # the table conatins values in MHz
    67         lcbase.set_freq_limits(self, fmin*base[unit], fmax*base[unit])
     67        lcbase.set_frequency_limits(self, fmin*base[unit], fmax*base[unit])
    6868
    6969    def set_strength_limits(self, smin, smax):
     
    106106        freq = lcbase.get_frequency(self, row)
    107107        name = lcbase.get_name(self, row)
    108         return (freq, name)
     108        return { 'name':name, 'value': freq }
    109109
    110110    def __len__(self):
  • trunk/src/python_LineCatalog.cpp

    r1126 r1156  
    2828        .def("get_name", &LineCatalog::getName)
    2929        .def("get_frequency", &LineCatalog::getFrequency)
    30         .def("set_freq_limits", &LineCatalog::setFrequencyLimits)
     30        .def("set_frequency_limits", &LineCatalog::setFrequencyLimits)
    3131        .def("set_strength_limits", &LineCatalog::setStrengthLimits)
    3232        .def("set_name", &LineCatalog::setPattern)
Note: See TracChangeset for help on using the changeset viewer.