Code indexing in gitaly is broken and leads to code not being visible to the user. We work on the issue with highest priority.

Skip to content

Feat/dap waveform

wyzula_j requested to merge feat/dap-waveform into main

Description

Feature to add dap process curve to Waveform1D. Dap Curve can be added while adding new scan curve with:

❯❯ plt = fig.plot(x_name='samx',y_name='bpm3a',dap='GaussianModel')

or independently:

❯❯ plt.plot(x_name='samx',y_name='bpm4i')

❯❯ plt.add_dap(x_name='samx',y_name='bpm4i',dap="GaussianModel")

to get fit parameters one has to find the dap curve and get property dap_params

❯❯ plt.get_curve("bpm4i-bpm4i-GaussianModel").dap_params
Out[8]:
{'amplitude': 203.57870470728014,
 'center': 5.061513506630961,
 'sigma': 1.0288090960691245}

Related Issues

closes #236 (closed)

Type of Change

  • new feature to add dap model to waveform1d

Potential side effects

None

Gif!

dap.mov

Definition of Done

  • Documentation is up-to-date.
Edited by wyzula_j

Merge request reports

Loading