Skip to content

Commit

Permalink
Doing some tidying, use amplitudes much more TODO!
Browse files Browse the repository at this point in the history
  • Loading branch information
JoeZiminski committed Dec 25, 2024
1 parent e77d06b commit 80eaf24
Show file tree
Hide file tree
Showing 12 changed files with 235 additions and 426 deletions.
Binary file modified debugging/histogram1.npy
Binary file not shown.
Binary file modified debugging/histogram2.npy
Binary file not shown.
Binary file modified debugging/histogram3.npy
Binary file not shown.
Binary file modified debugging/peak_locs_1.npy
Binary file not shown.
Binary file modified debugging/peak_locs_2.npy
Binary file not shown.
Binary file modified debugging/peak_locs_3.npy
Binary file not shown.
Binary file modified debugging/peaks_1.npy
Binary file not shown.
Binary file modified debugging/peaks_2.npy
Binary file not shown.
Binary file modified debugging/peaks_3.npy
Binary file not shown.
20 changes: 10 additions & 10 deletions debugging/playing.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,13 @@
# --------------------------------------------------------------------------------------

recordings_list, _ = generate_session_displacement_recordings(
num_units=20,
num_units=65,
recording_durations=[400, 400, 400],
recording_shifts=((0, 0), (0, -200), (0, 100)), # TODO: can see how well this is recaptured by comparing the displacements to the known displacement + gradient
non_rigid_gradient=None, # 0.1,
seed=2, # 52
recording_shifts=((0, 0), (0, -200), (0, 150)), # TODO: can see how well this is recaptured by comparing the displacements to the known displacement + gradient
non_rigid_gradient=0.1, # 0.1,
seed=5, # 52
)

if False:
import numpy as np

Expand All @@ -60,15 +61,14 @@
detect_kwargs={"method": "locally_exclusive"},
localize_peaks_kwargs={"method": "grid_convolution"},
)
# if False:
np.save("peaks_1.npy", peaks_list[0])
np.save("peaks_2.npy", peaks_list[1])
np.save("peaks_3.npy", peaks_list[2])
np.save("peak_locs_1.npy", peak_locations_list[0])
np.save("peak_locs_2.npy", peak_locations_list[1])
np.save("peak_locs_3.npy", peak_locations_list[2])

# if False:
# if False:
peaks_list = [np.load("peaks_1.npy"), np.load("peaks_2.npy"), np.load("peaks_3.npy")]
peak_locations_list = [np.load("peak_locs_1.npy"), np.load("peak_locs_2.npy"), np.load("peak_locs_3.npy")]

Expand All @@ -81,16 +81,16 @@
# See `session_alignment.py` for docs on these settings.

non_rigid_window_kwargs = session_alignment.get_non_rigid_window_kwargs()
non_rigid_window_kwargs["rigid_mode"] = "nonrigid"
non_rigid_window_kwargs["rigid_mode"] = "rigid"
non_rigid_window_kwargs["win_shape"] = "rect"
non_rigid_window_kwargs["win_step_um"] = 200.0
non_rigid_window_kwargs["win_scale_um"] = 300.0
non_rigid_window_kwargs["win_step_um"] = 300.0
non_rigid_window_kwargs["win_scale_um"] = 400.0

estimate_histogram_kwargs = session_alignment.get_estimate_histogram_kwargs()
estimate_histogram_kwargs["method"] = "chunked_median"
estimate_histogram_kwargs["histogram_type"] = "activity_1d" # TODO: investigate this case thoroughly
estimate_histogram_kwargs["bin_um"] = 5
estimate_histogram_kwargs["log_scale"] = True
estimate_histogram_kwargs["log_scale"] = False
estimate_histogram_kwargs["weight_with_amplitude"] = True

compute_alignment_kwargs = session_alignment.get_compute_alignment_kwargs()
Expand Down
Loading

0 comments on commit 80eaf24

Please sign in to comment.