bartorch.tools.trajcor

Contents

bartorch.tools.trajcor#

bartorch.tools.trajcor(traj, *, q=None, V=None, O=False, **extra)#

Correct delays for a given trajectory.

Runs bart trajcor.

Parameters:
  • traj (torch.Tensor) – Input array.

  • q (tuple[float, float, float] | None) – gradient delays: y, x, xy (-q)

  • V (torch.Tensor | None) – custom_gdelays (-V)

  • O (bool) – correct transverse gradient error for radial trajectories (-O)

  • **extra (Any) – Further BART flags, passed through by name.

Returns:

output traj

Return type:

torch.Tensor