Skip to content

Commit eb8a991

Browse files
committed
Small fixes.
1 parent ee65552 commit eb8a991

2 files changed

Lines changed: 2 additions & 9 deletions

File tree

lensless/utils/plot.py

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -235,13 +235,6 @@ def plot_cross_section(
235235
zero_crossings = np.where(np.diff(np.signbit(cross_section + plot_db_drop)))[0]
236236
if len(zero_crossings) >= 2:
237237
zero_crossings -= np.argmax(cross_section)
238-
<<<<<<< HEAD
239-
width = zero_crossings[-1] - zero_crossings[0]
240-
ax.set_title(f"-{plot_db_drop}dB width = {width}")
241-
ax.axvline(x=zero_crossings[0], c="k", linestyle="--")
242-
ax.axvline(x=zero_crossings[-1], c="k", linestyle="--")
243-
print(f"{plot_db_drop}dB width : {width} pixels")
244-
=======
245238

246239
# width = zero_crossings[-1] - zero_crossings[0]
247240
# ax.axvline(x=zero_crossings[0], c="k", linestyle="--")
@@ -251,11 +244,11 @@ def plot_cross_section(
251244
width = 2 * np.abs(first_crossing)
252245
ax.axvline(x=-first_crossing, c="k", linestyle="--")
253246
ax.axvline(x=+first_crossing, c="k", linestyle="--")
247+
print(f"{plot_db_drop}dB width : {width} pixels")
254248

255249
ax.set_title("Cross-section")
256250
ax.set_xlabel(f"-{plot_db_drop}dB width = {width}")
257251

258-
>>>>>>> main
259252
else:
260253
warnings.warn(
261254
"Width could not be determined. Did not detect two -{} points : {}".format(

scripts/measure/analyze_image.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@
102102
)
103103
@click.option(
104104
"--save_auto",
105-
type=str,
105+
is_flag=True,
106106
help="Save autocorrelation instead of pop-up window.",
107107
)
108108
@click.option(

0 commit comments

Comments
 (0)