Skip to content

Commit

Permalink
Remove old displacement_unit_factor
Browse files Browse the repository at this point in the history
  • Loading branch information
alejoe91 committed Jun 28, 2024
1 parent efd5ecf commit 0015f5f
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions src/spikeinterface/generation/hybrid_tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -541,23 +541,6 @@ def generate_hybrid_recording(
# since displacement is estimated by interpolation for each unit, the unit factor is an eye
displacement_unit_factor = np.eye(num_units)

# spatial_bins_um = motion.spatial_bins_um
# for segment_index in range(motion.num_segments):
# temporal_bins_segment = motion.temporal_bins_s[segment_index]
# displacement_segment = motion.displacement[segment_index]
# displacement_vector = np.zeros((len(temporal_bins_segment), 2, len(spatial_bins_um)))

# for count, i in enumerate(spatial_bins_um):
# local_motion = displacement_segment[:, count]
# displacement_vector[:, motion.dim, count] = local_motion
# displacement_vectors.append(displacement_vector)

# # calculate displacement unit factor
# displacement_unit_factor = np.zeros((num_units, len(spatial_bins_um)))
# for count in range(num_units):
# a = 1 / np.abs((unit_locations[count, motion.dim] - spatial_bins_um))
# displacement_unit_factor[count] = a / a.sum()

hybrid_recording = InjectDriftingTemplatesRecording(
sorting=sorting,
parent_recording=recording,
Expand Down

0 comments on commit 0015f5f

Please sign in to comment.