read_vops#
- pypulseqpp.safety.read_vops()[source]#
Read VOPs and a global SAR matrix from a
.mator.npzfile.A
.matfile holds MATLAB’s(Nc, Nc, N)stack, namedVOP,vops,Q10gorQ, and optionallySglobalorglobal_matrix; the stack is read into(N, Nc, Nc). MATLAB v7.3 (HDF5) files are not read. An.npzfile holdsvopsas(N, Nc, Nc)and optionallyglobal_matrix.- Parameters:
path (str | os.PathLike) – The
.mator.npzfile to read.- Returns:
The VOPs and, where the file carries one, the global SAR matrix, for
check_sar()to take as itsmodel.- Return type:
- Raises:
ValueError – If the file holds no recognised VOP array, or one whose shape is not a square stack.
OSError – If the file cannot be read, a MATLAB v7.3 file among them.