g4ixt / QtTinySA

A Python 'TinySA' GUI programme using Qt5 and PyQt5
GNU General Public License v3.0
106 stars 26 forks source link

fix error during 1st band select before run #18

Closed Ho-Ro closed 1 year ago

Ho-Ro commented 1 year ago

When selecting a new band before the 1st run I get this error and only the start frequency was changed:

Traceback (most recent call last):
  File "/home/horo/projects/tinySA/QtTinySA/QtTinySA.py", line 563, in band_changed
    start_freq_changed(False)
  File "/home/horo/projects/tinySA/QtTinySA/QtTinySA.py", line 527, in start_freq_changed
    tinySA.setPoints()
  File "/home/horo/projects/tinySA/QtTinySA/QtTinySA.py", line 217, in setPoints
    points = int((ui.span_freq.value()*1000)/(float(self.rbw)/2))  # values in kHz
                                                    ^^^^^^^^
AttributeError: 'analyser' object has no attribute 'rbw'
Ho-Ro commented 1 year ago

sorry, my mistake, was in wrong branch

g4ixt commented 1 year ago

easily done! I already spotted that one and fixed it. I also fixed the 'cversion?' problem at start-up, by a workaround, do you think that is something Erik should look at?