read_vendor

Contents

read_vendor#

pulserver.ir.read_vendor()[source]#

Read a vendor file into the profile and grouping a conversion takes.

The file holds a [Grouping] and a [VendorProfile] block, each closed by its [... End] line, with one name: value line per field and every field stated; blank lines and lines starting with # are skipped. A grouping field is a number or true/false; a profile field is a Format name and the SI value of one integer step, 0 for a float:

[Grouping]
boundary_gradient_hz_per_m: 100
split_by_pulses: true
split_by_readouts: true
split_navigators: true
split_edge_delays: true
[Grouping End]
[VendorProfile]
grad_sample: int16 1.5e-4
grad_amplitude: float32 0
rf_sample: int16 3.0e-5
rf_amplitude: float32 0
rf_phase: float32 0
rf_frequency: float32 0
[VendorProfile End]
Raises:

ValueError – If the file states anything else, leaves a field out, or states one twice: nothing falls back to a default.