Skip to content

Commit

Permalink
fix unbound error
Browse files Browse the repository at this point in the history
  • Loading branch information
zm711 committed Sep 11, 2023
1 parent cb219f1 commit cbb1a80
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/spikeanalysis/spike_analysis.py
Original file line number Diff line number Diff line change
Expand Up @@ -274,6 +274,8 @@ def get_raw_firing_rate(
bsl_windows = verify_window_format(window=bsl_window, num_stim=NUM_STIM)
baseline = True
assert mode == "bsl-subtracted", "only give baseline for baseline subtracted"
else:
baseline = False
fr_windows = verify_window_format(window=fr_window, num_stim=NUM_STIM)

if mode == "smooth":
Expand Down

0 comments on commit cbb1a80

Please sign in to comment.