Skip to content

Commit

Permalink
fix: simplify frequency step calculation in _update_ax function
Browse files Browse the repository at this point in the history
Signed-off-by: samadpls <[email protected]>
  • Loading branch information
samadpls committed Feb 6, 2025
1 parent 8d66e91 commit f66f786
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions hnn_core/gui/_viz_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -300,9 +300,8 @@ def _update_ax(fig, ax, single_simulation, sim_name, plot_type, plot_config):
if len(dpls_copied) > 0:
min_f = plot_config['min_spectral_frequency']
max_f = plot_config['max_spectral_frequency']
if max_f > min_f:
step_f = 1
elif min_f > max_f:
step_f = 1.0
if min_f > max_f:
step_f = -1
freqs = np.arange(min_f, max_f, step_f)
n_cycles = freqs / 2.
Expand Down

0 comments on commit f66f786

Please sign in to comment.