From 281f1a844c6e4b31ee378f841e5d41329dc6b31d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20M=C3=BCnker?= Date: Sun, 17 Mar 2024 22:49:25 +0100 Subject: [PATCH] =?UTF-8?q?Run=20code=20indendently=20of=20fx=5Fsim=20sett?= =?UTF-8?q?ing=20Signed-off-by:=20Christian=20M=C3=BCnker=20?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pyfda/plot_widgets/plot_impz.py | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/pyfda/plot_widgets/plot_impz.py b/pyfda/plot_widgets/plot_impz.py index f4db3736..2af31990 100644 --- a/pyfda/plot_widgets/plot_impz.py +++ b/pyfda/plot_widgets/plot_impz.py @@ -337,19 +337,18 @@ def process_sig_rx(self, dict_sig=None): - Update run button style to 'changed' - If widget is visible and autorun is selected, initialize fixpoint widget and - start simulation via `self.impz_init()` + start simulation via `calc_auto` -> `self.impz_init()` """ self.needs_calc_fx = True # fx sim needs recalculation + self.needs_calc = True # force recalculation + self.error = False # reset error flag # set cmb box for fixpoint / float simulation and update ui: self.toggle_fx_settings() - if fb.fil[0]['fx_sim']: # fixpoint mode is active - self.error = False # reset error flag - self.needs_calc = True # force recalculation - qstyle_widget(self.ui.but_run, 'changed') - self.ui.but_run.setIcon(QIcon(":/play.svg")) - if self.isVisible(): - self.calc_auto() # call impz_init() if autorun is selected + qstyle_widget(self.ui.but_run, 'changed') + self.ui.but_run.setIcon(QIcon(":/play.svg")) + if self.isVisible(): + self.calc_auto() # call impz_init() if autorun is selected # --------------- 'start_fx_response_calculation' --------- elif dict_sig['fx_sim'] == 'start_fx_response_calculation':