Simulated temperature sensor: only one value
The simulated temperature sensor produces only 1 value (it used to be as many as there are scan points):
from bliss.config.static import get_config
from bliss.common.standard import loopscan
session = get_config().get("test_session")
session.setup()
detectors = session.env_dict["thermo_sample"], session.env_dict["diode2"]
scan = loopscan(10, 0.1, *detectors, run=True, save=False)
data = scan.get_data()
assert data.get('simulation_diode_sampling_controller:diode2').size == 10
assert data.get('thermo_sample:thermo_sample').size == 10
The diode is fine but the temp sensor is not.
Edited by Wout De Nolf