We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 65c93e3 commit c2b6f37Copy full SHA for c2b6f37
src/spikeinterface/generation/drifting_generator.py
@@ -141,8 +141,15 @@ def make_one_displacement_vector(
141
else:
142
displacement_vector[ind0:ind1] = -0.5
143
144
+ elif drift_mode == "slope":
145
+
146
+ slope = np.linspace(0, 1, end_drift_index - start_drift_index) # TODO: check amplitude
147
148
+ displacement_vector[start_drift_index:end_drift_index] = slope
149
+ displacement_vector[end_drift_index:] = slope[-1]
150
151
- raise ValueError("drift_mode must be 'zigzag' or 'bump'")
152
+ raise ValueError("drift_mode must be 'zigzag', 'bump' or 'slope'")
153
154
return displacement_vector * amplitude_factor
155
0 commit comments