Commit a1ab2e80 authored by bliss administrator's avatar bliss administrator
Browse files

add xname in fscan title to ease PyMca use (x selection)

parent 6233ecb7
...@@ -143,8 +143,10 @@ def fscan( ...@@ -143,8 +143,10 @@ def fscan(
print('after aqcuisition chain definition.') print('after aqcuisition chain definition.')
print(f"@{time.time()-time0:.3f}s") print(f"@{time.time()-time0:.3f}s")
xname = 'hdh_energy'
scan_info_dict = { scan_info_dict = {
"title": f"fscan {energy_start} {energy_end} {duration} {energy_step}", "title": f"fscan {xname} {energy_start} {energy_end} {duration} {energy_step}",
"start": energy_start, "start": energy_start,
"stop": energy_end, "stop": energy_end,
"npoints": nbpoints, "npoints": nbpoints,
...@@ -152,11 +154,9 @@ def fscan( ...@@ -152,11 +154,9 @@ def fscan(
"count_time": exp_time, "count_time": exp_time,
} }
scan_info = ScanInfo() scan_info = ScanInfo()
scan_info.update(scan_info_dict) scan_info.update(scan_info_dict)
xname = 'hdh_energy'
scan_info.add_curve_plot( x=xname ) scan_info.add_curve_plot( x=xname )
scan_info.set_channel_meta( scan_info.set_channel_meta(
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment