mahos.msgs.common_meas_msgs.BasicMeasData#
- class mahos.msgs.common_meas_msgs.BasicMeasData#
Base Data class for Basic Measurements (BasicMeas).
A Basic Measurement Node will produce Data which is 2D-plottable (x and y). BasicMeasData defines common interface to get x/y data and fitting data.
- Variables:
running – True if measurement is running. initialized with False.
start_time – initialized with time.time().
finish_time – initialized with None.
paused_periods – pairs of (paused_time, resumed_time). initialized with empty array.
- __init__()#
Methods
finalize()Set attributes to finalize the measurement and data.
get_fit_xdata()Get X-axis data of 2D fitting result.
get_fit_ydata()Get Y-axis data of 2D fitting result.
get_xdata()Get X-axis data for 2D plot.
get_ydata()Get Y-axis data for 2D plot.
has_data()Return True if data is ready and valid data could be read out.
init_attrs()Initialize common attributes.
init_axes()Initialize X and Y axes label, unit, and scale.
is_finalized()Return True if the data is already finalized.
is_saved()Return True if this data is saved once.
remove_fit_data()Remove the 2D fitting result.
resume()Set attributes to resume the measurement.
set_fit_data(x, y, params, label, result)Set 2D fitting result.
set_saved()Set flag whether this data is saved once.
start()Set attributes to start the measurement.