Skip to content

Commit

Permalink
fix for infinite
Browse files Browse the repository at this point in the history
  • Loading branch information
zm711 committed Oct 4, 2023
1 parent 5087ff6 commit 8b734c8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/spikeanalysis/spike_plotter.py
Original file line number Diff line number Diff line change
Expand Up @@ -798,6 +798,8 @@ def plot_response_trace(
current_length = stim_lengths[stimulus]
current_bins = bins[stimulus]

response[~np.isfinite(response)]=np.nan

if by_trial and by_neuron:
for neuron in range(np.shape(response)[0]):
for trial in range(np.shape(response)[1]):
Expand Down

0 comments on commit 8b734c8

Please sign in to comment.