Skip to content

Commit 356915b

Browse files
committed
touch up
1 parent e56f8b8 commit 356915b

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

export.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -384,7 +384,7 @@ def export_xanes_scan(run, filepath="", **kwargs):
384384

385385
eng_list = list(run.start["eng_list"])
386386

387-
img_xanes_norm = (img_xanes_avg - img_dark_avg) * 1.0 / (img_bkg_avg - img_dark_avg)
387+
img_xanes_norm = ((img_xanes_avg - img_dark_avg) * 1.0) / (img_bkg_avg - img_dark_avg)
388388
img_xanes_norm[np.isnan(img_xanes_norm)] = 0
389389
img_xanes_norm[np.isinf(img_xanes_norm)] = 0
390390

@@ -404,9 +404,8 @@ def export_xanes_scan(run, filepath="", **kwargs):
404404
hf.create_dataset("Pixel Size", data=str(pxl_sz) + "nm")
405405

406406

407-
408407
def export_xanes_scan2(run, filepath="", **kwargs):
409-
export_xanes_scan(run, filepath="", **kwargs)
408+
export_xanes_scan(run, filepath=filepath, **kwargs)
410409

411410

412411
def export_xanes_scan_img_only(run, filepath="", **kwargs):

0 commit comments

Comments
 (0)