- Timestamp:
- 08/21/06 15:49:24 (18 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/python/linecatalog.py
r1154 r1156 65 65 raise ValueError("%s is not a valid unit." % unit) 66 66 # 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]) 68 68 69 69 def set_strength_limits(self, smin, smax): … … 106 106 freq = lcbase.get_frequency(self, row) 107 107 name = lcbase.get_name(self, row) 108 return (freq, name)108 return { 'name':name, 'value': freq } 109 109 110 110 def __len__(self): -
trunk/src/python_LineCatalog.cpp
r1126 r1156 28 28 .def("get_name", &LineCatalog::getName) 29 29 .def("get_frequency", &LineCatalog::getFrequency) 30 .def("set_freq _limits", &LineCatalog::setFrequencyLimits)30 .def("set_frequency_limits", &LineCatalog::setFrequencyLimits) 31 31 .def("set_strength_limits", &LineCatalog::setStrengthLimits) 32 32 .def("set_name", &LineCatalog::setPattern)
Note:
See TracChangeset
for help on using the changeset viewer.