File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 (
Original file line number Diff line number Diff line change 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 (
You can’t perform that action at this time.
0 commit comments