read_forbidden_bands#
- pypulseqpp.safety.read_forbidden_bands()[source]#
Read forbidden bands from a Siemens
.aschardware description.The file is read with upstream PyPulseq’s
readasc. Its acoustic resonances are a centre and a bandwidth, with no axis and no tolerance, so every band guards every axis with tolerance 0. Bands from any other table are passed tocheck_mech_resonance()asForbiddenBandvalues.- Parameters:
path (str or os.PathLike) – Siemens
.aschardware description.- Returns:
The bands, for
check_mech_resonance()to take as itsbands.- Return type:
- Raises:
ValueError – If the file is not a
.ascfile.