Skip to content

Commit c58e382

Browse files
committed
small changes prior to refactoring.
1 parent c0eb2f5 commit c58e382

File tree

1 file changed

+13
-3
lines changed

1 file changed

+13
-3
lines changed

debugging/test_session_alignment.py

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,14 +45,24 @@
4545
# list out carefully all notes
4646
# handle the case where the passed recordings are not motion correction recordings.
4747

48-
SAVE = False
48+
49+
# 1) get all commits and PRs in order. Work on the original PR
50+
# 2) investigate why the expected peaks do not drop when recording_amplitude_scalings (rename) is used
51+
# 3) think about and add new neurons that are introduced when shifted
52+
53+
# 4) add interpolation of the histograms prior to cross correlation
54+
# 5) add robust cross-correlation
55+
# 6) add trimmed methods
56+
# 7) add better way to estimate chunk length.
57+
58+
SAVE = True
4959
PLOT = False
5060
BIN_UM = 2
5161

5262
if SAVE:
5363
scalings = [np.ones(25), np.r_[np.zeros(10), np.ones(15)]] # TODO: there is something wrong here, because why are the maximum histograms not removed?
5464
recordings_list, _ = generate_session_displacement_recordings(
55-
non_rigid_gradient=None, # 0.05, # None,
65+
non_rigid_gradient=0.1, # 0.05, # None,
5666
num_units=15,
5767
recording_durations=(100, 100, 100, 100),
5868
recording_shifts=(
@@ -82,7 +92,7 @@
8292

8393

8494
corrected_recordings_list, motion_objects_list, extra_info = session_alignment.run_inter_session_displacement_correction(
85-
recordings_list, peaks_list, peak_locations_list, bin_um=BIN_UM, histogram_estimation_method="entire_session", alignment_method="mean_crosscorr", rigid=False, log_scale=True, num_nonrigid_bins=7
95+
recordings_list, peaks_list, peak_locations_list, bin_um=BIN_UM, histogram_estimation_method="entire_session", alignment_method="mean_crosscorr", rigid=False, log_scale=True, num_nonrigid_bins=24
8696
)
8797

8898
plotting.SessionAlignmentWidget(

0 commit comments

Comments
 (0)