mr2.data.bart.write_bart

mr2.data.bart.write_bart(filename: str | PathLike, data: Tensor) → None[source]

Write a tensor as BART array.

Parameters:
  • filename (str | PathLike) – A .cfl or .hdr suffix writes a .hdr/.cfl pair, a .ra suffix writes a single file.

  • data (Tensor) – Tensor with dimensions in BART order. It is converted to complex64.