Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Phase reconstruction is invariant to voxel-size #164

Merged
merged 18 commits into from
Apr 23, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
formatting
talonchandler committed Mar 18, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
commit 18d39f13fcce99d3b50937ceddf465ba4b15c0d0
14 changes: 12 additions & 2 deletions waveorder/focus.py
Original file line number Diff line number Diff line change
@@ -104,7 +104,12 @@ def focus_from_transverse_band(
# Plot
if plot_path is not None:
_plot_focus_metric(
plot_path, midband_sum, peak_index, in_focus_index, peak_results, threshold_FWHM
plot_path,
midband_sum,
peak_index,
in_focus_index,
peak_results,
threshold_FWHM,
)

return in_focus_index
@@ -152,7 +157,12 @@ def _check_focus_inputs(


def _plot_focus_metric(
plot_path, midband_sum, peak_index, in_focus_index, peak_results, threshold_FWHM
plot_path,
midband_sum,
peak_index,
in_focus_index,
peak_results,
threshold_FWHM,
):
_, ax = plt.subplots(1, 1, figsize=(4, 4))
ax.plot(midband_sum, "-k")