Skip to content

Commit

Permalink
Fix tlecomte#230: Rounded frequency value to Int
Browse files Browse the repository at this point in the history
  • Loading branch information
Salavin committed Jan 18, 2023
1 parent 1b23d28 commit c82e857
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions friture/generators/sweep.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,8 +156,8 @@ def saveState(self, settings):

def restoreState(self, settings):
sweep_start_frequency = settings.value("sweep start frequency", DEFAULT_SWEEP_STARTFREQUENCY, type=float)
self.spinBox_sweep_startfrequency.setValue(sweep_start_frequency)
self.spinBox_sweep_startfrequency.setValue(round(sweep_start_frequency))
sweep_stop_frequency = settings.value("sweep stop frequency", DEFAULT_SWEEP_STOPFREQUENCY, type=float)
self.spinBox_sweep_stopfrequency.setValue(sweep_stop_frequency)
self.spinBox_sweep_stopfrequency.setValue(round(sweep_stop_frequency))
sweep_period = settings.value("sweep period", DEFAULT_SWEEP_PERIOD_S, type=float)
self.spinBox_sweep_period.setValue(sweep_period)

0 comments on commit c82e857

Please sign in to comment.