mr2.data.bart.read_bart

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

Read a BART array.

Parameters:

filename (str | PathLike) – Path to a .cfl or .hdr file of a .hdr/.cfl pair, or to a .ra file.

Returns:

complex64 tensor with the dimensions in BART order, i.e., data[i0, i1, ...] with i0 being BART dimension 0. Trailing singleton dimensions are kept as stored.