Commit 1cddba58 authored by bliss administrator's avatar bliss administrator
Browse files

use ScanInfo - needs flint backport from 1.9 id26/d22f5b7

parent 6c1a9e78
......@@ -13,6 +13,7 @@ from bliss.common.logtools import (
log_exception
)
from bliss.scanning.scan import Scan, ScanState, DataWatchCallback
from bliss.scanning.scan_info import ScanInfo
from id26.scripts.energy import (
stepstoenergy,
......@@ -148,16 +149,31 @@ def fscan(
print('after aqcuisition chain definition.')
print(f"@{time.time()-time0:.3f}s")
scan_info = {
scan_info_dict = {
"title": f"fscan {energy_start} {energy_end} {duration} {energy_step}",
"start": energy_start,
"stop": energy_end,
"npoints": nbpoints,
"type": "fscan",
"count_time": exp_time,
"data_dim": 2,
}
scan_info = ScanInfo()
scan_info.update(scan_info_dict)
xname = 'hdh_energy'
scan_info.add_curve_plot( x=xname )
scan_info.set_channel_meta(
xname,
start=energy_start,
stop=energy_end,
points=nbpoints,
)
#============================
scan = Scan(
chain,
name="fscan",
......
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