mr2.operators.models.BMC.SuperLorentzianMT
- class mr2.operators.models.BMC.SuperLorentzianMT[source]
Bases:
MTSaturationSuper-Lorentzian lineshape for MT saturation.
- __init__(pool_index: int, t2: Tensor, samples: int = 101) None[source]
Initialize the super-Lorentzian MT model.
- pool_index: int
Index of the MT pool in the pool dimension.
- t2: torch.Tensor
Transverse relaxation time in seconds.
- __call__(delta_omega: Tensor) Tensor[source]
Evaluate (G(Delta)) [s].
- Parameters:
delta_omega (
Tensor) – Detuning in rad/s.- Returns:
Lineshape value.
- forward(*input: Any) None
Define the computation performed at every call.
Should be overridden by all subclasses.
Note
Although the recipe for forward pass needs to be defined within this function, one should call the
Moduleinstance afterwards instead of this since the former takes care of running the registered hooks while the latter silently ignores them.