diff --git a/hnn_core/gui/_viz_manager.py b/hnn_core/gui/_viz_manager.py index 41eff684a..3b24161c1 100644 --- a/hnn_core/gui/_viz_manager.py +++ b/hnn_core/gui/_viz_manager.py @@ -302,7 +302,7 @@ def _update_ax(fig, ax, single_simulation, sim_name, plot_type, plot_config): max_f = plot_config['max_spectral_frequency'] step_f = 1.0 freqs = np.arange(min_f, max_f, step_f) - n_cycles = freqs / 8. + n_cycles = freqs / 2. dpls_copied[0].plot_tfr_morlet( freqs, n_cycles=n_cycles, diff --git a/hnn_core/tests/test_gui.py b/hnn_core/tests/test_gui.py index d23fbb440..b64ed6eb7 100644 --- a/hnn_core/tests/test_gui.py +++ b/hnn_core/tests/test_gui.py @@ -513,6 +513,8 @@ def test_gui_add_data_dependent_figure(setup_gui): axes_config_tabs = gui.viz_manager.axes_config_tabs assert len(fig_tabs.children) == 0 assert len(axes_config_tabs.children) == 0 + # Spectrogram needs longer time for wavelet analysis + gui.widget_tstop.value = 500 # after each run we should have a default fig gui.run_button.click() @@ -655,6 +657,8 @@ def test_gui_visualization(setup_gui): """Tests updating a figure creates plots with data.""" gui = setup_gui + # Spectrogram needs longer time for wavelet analysis + gui.widget_tstop.value = 500 gui.run_button.click() gui._simulate_viz_action("switch_fig_template", "[Blank] single figure")