exam-manager.app.tools.mri_sequence_plot#
Utility function to create a sequence plot with plotly.
Classes#
Numpy model for trace data. |
Functions#
|
Compute a sequence dictionary from pulseq sequence object. |
|
Generate plotly figure of traces. |
Module Contents#
- class exam-manager.app.tools.mri_sequence_plot.TraceData#
Bases:
pydantic.BaseModel
Numpy model for trace data.
- x: list[float]#
- y: list[float]#
- name: str#
- exam-manager.app.tools.mri_sequence_plot.get_sequence_plot(seq: pypulseq.Sequence, time_range: tuple[float, float] = (0.0, np.inf), time_factor=1000.0) list[TraceData] #
Compute a sequence dictionary from pulseq sequence object.
Parameters#
- seq
pypulseq sequence object
- time_range, optional
time span of the sequence plot, by default (0., np.inf)
- time_factor, optional
time prefix, by default 1e3
Returns#
list of plot data models