Skip to content

Commit

Permalink
Output corrected recordings.
Browse files Browse the repository at this point in the history
  • Loading branch information
JoeZiminski committed Jul 15, 2024
1 parent 64dc406 commit 9509da0
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/spikeinterface/generation/drifting_generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,8 +141,15 @@ def make_one_displacement_vector(
else:
displacement_vector[ind0:ind1] = -0.5

elif drift_mode == "slope":

slope = np.linspace(0, 1, end_drift_index - start_drift_index) # TODO: check amplitude

displacement_vector[start_drift_index:end_drift_index] = slope
displacement_vector[end_drift_index:] = slope[-1]

else:
raise ValueError("drift_mode must be 'zigzag' or 'bump'")
raise ValueError("drift_mode must be 'zigzag', 'bump' or 'slope'")

return displacement_vector * amplitude_factor

Expand Down

0 comments on commit 9509da0

Please sign in to comment.