mahos_dq.msgs.podmr_msgs.PODMRData#

class mahos_dq.msgs.podmr_msgs.PODMRData(params: dict | None = None, label: str = '')#

Pulse ODMR data container with TDC-derived raw traces.

Variables:
  • tdc_status – Latest time-to-digital-converter status summary.

  • data0 – Accumulated signal data for pattern 0.

  • data1 – Accumulated signal data for pattern 1.

  • data2 – Accumulated signal data for pattern 2.

  • data3 – Accumulated signal data for pattern 3.

  • data0ref – Reference data for pattern 0.

  • data1ref – Reference data for pattern 1.

  • data2ref – Reference data for pattern 2.

  • data3ref – Reference data for pattern 3.

  • raw_data – Raw detector events or histogram data.

  • raw_xdata – X-axis for raw_data.

  • marker_indices – Cached marker ranges for signal/reference windows.

  • laser_timing – Pulse timing array used for ROI calculation.

Pattern-indexed access is provided by data(index) / data_ref(index) and set_data(index, value) / set_data_ref(index, value).

__init__(params: dict | None = None, label: str = '')#

Methods

__init__([params, label])

can_resume(params, label)

Check if the measurement can be resumed with given new_params.

data(index)

Get analyzed signal data at index.

data_ref(index)

Get analyzed reference data at index.

get_bin()

Get TDC time bin in sec.

get_fit_xdata()

Get X-axis data of 2D fitting result.

get_fit_ydata()

Get Y-axis data of 2D fitting result.

get_method()

get_params()

get_pulse_params()

get_range()

Get TDC sweep range in sec.

get_raw_xdata()

Get x (time) axis of raw data.

get_roi(index)

Get ROI (start, stop) at index in unit of time bins.

get_roi_margins()

ROI margins [head, tail] in sec.

get_roi_num()

Get number of points in a ROI.

get_rois()

Get list of ROI (start, stop) in unit of time bins for all the laser pulses.

get_sampling_rate()

get_total_scale()

Get the scaling parameters to get total precession time.

get_xdata([fit, force_taumode])

Get analyzed xdata.

get_ydata()

Get analyzed ydata.

has_data()

Return True if data is ready and valid data could be read out.

has_raw_data()

Return True if current data is valid (not empty nor all zero).

has_roi()

init_xdata()

is_CPlike()

is_correlation()

is_partial()

is_supersampling()

is_sweepN()

measurement_time()

Calculate measurement time in sec.

num_pattern()

partial()

set_data(index, value)

Set analyzed signal data at index.

set_data_ref(index, value)

Set analyzed reference data at index.

snapshot_for_save([finalize])

Make a save-ready snapshot without mutating this instance.

sweeps()