Skip to content

Commit

Permalink
add ext
Browse files Browse the repository at this point in the history
  • Loading branch information
searscr committed Sep 30, 2023
1 parent 70f61ba commit e92b77c
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions reduction/lr_reduction/time_resolved.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,10 @@ def reduce_30Hz(meas_run_30Hz, ref_run_30Hz, ref_data_60Hz, template_30Hz, scan_
template_data = template.read_template(template_30Hz, scan_index)

# Reduce the quartz at 30Hz
ref_ws_30Hz = api.LoadEventNexus("REF_L_%s" % ref_run_30Hz)
ref_ws_30Hz = api.LoadEventNexus("REF_L_%s.nxs.h5" % ref_run_30Hz)

# Reduce the sample data at 30Hz
meas_ws_30Hz = api.LoadEventNexus("REF_L_%s" % meas_run_30Hz)
meas_ws_30Hz = api.LoadEventNexus("REF_L_%s.nxs.h5" % meas_run_30Hz)

# Load the 60Hz reference data
data_60Hz = np.loadtxt(ref_data_60Hz).T
Expand Down Expand Up @@ -125,7 +125,7 @@ def reduce_30Hz_slices(meas_run_30Hz, ref_run_30Hz, ref_data_60Hz, template_30Hz
print(f'time_resolved: {config.getDataSearchDirs()}')
import sys
print(f'syspath: {sys.path}')
meas_ws_30Hz = api.LoadEventNexus("REF_L_%s" % meas_run_30Hz)
meas_ws_30Hz = api.LoadEventNexus("REF_L_%s.nxs.h5" % meas_run_30Hz)

return reduce_30Hz_slices_ws(meas_ws_30Hz, ref_run_30Hz, ref_data_60Hz, template_30Hz,
time_interval, output_dir, scan_index=scan_index, create_plot=create_plot,
Expand All @@ -134,7 +134,7 @@ def reduce_30Hz_slices(meas_run_30Hz, ref_run_30Hz, ref_data_60Hz, template_30Hz
def reduce_60Hz_slices(meas_run, template_file,
time_interval, output_dir, scan_index=1, create_plot=True):

meas_ws = api.LoadEventNexus("REF_L_%s" % meas_run)
meas_ws = api.LoadEventNexus("REF_L_%s.nxs.h5" % meas_run)

return reduce_60Hz_slices_ws(meas_ws, template_file,
time_interval, output_dir, scan_index=scan_index, create_plot=create_plot)
Expand Down Expand Up @@ -169,7 +169,7 @@ def reduce_30Hz_slices_ws(meas_ws_30Hz, ref_run_30Hz, ref_data_60Hz, template_30
if os.path.isfile(ref_run_30Hz):
ref_ws_30Hz = api.LoadEventNexus(ref_run_30Hz)
else:
ref_ws_30Hz = api.LoadEventNexus("REF_L_%s" % ref_run_30Hz)
ref_ws_30Hz = api.LoadEventNexus("REF_L_%s.nxs.h5" % ref_run_30Hz)

# Reduce the sample data at 30Hz
print("Reading sample data at 30Hz")
Expand Down

0 comments on commit e92b77c

Please sign in to comment.