pypulseq icon indicating copy to clipboard operation
pypulseq copied to clipboard

Pulseq in Python

Results 46 pypulseq issues
Sort by recently updated
recently updated
newest added

Following https://github.com/imr-framework/pypulseq/discussions/250. I've tried to add a meaningful test function.

The rf refocussing pulse gradient for slice selection uses the amplitude from the excitation pulse gradient. I believe the amplitude from the previously generated gz gradient for the refocussing pulse...

Implemented rotate3D. Changed rotate to have the correct rotation direction when rotating around the y-axis. The direction for rotating around the x- and z-axis is not changed.

Aligns SAR array with time array. Closes #223 ```python for block_counter in block_events: block = seq.get_block(block_counter) block_dur = calc_duration(block) t[block_counter - 1] = t_prev + block_dur t_prev = t[block_counter -...

**Describe the bug** calc_ramp specifies that you can give max_grad and slew_rate as a [3,1] array, but inside the function, max_grad and slew_rate is set as ``` if np.all(np.where(max_grad

Hi all, are[ those lines](https://github.com/imr-framework/pypulseq/blob/e4b3b4aba3526972d44bf464bdd7d077bf4f7790/src/pypulseq/Sequence/block.py#L261-L265) supposed to be `if ( abs(grad_to_check.stop[1]) > self.system.max_slew * self.system.grad_raster_time and abs(grad_to_check.stop[0] - duration) > 1e-7 ): raise RuntimeError("A gradient that doesn't end at zero...

I think it would be useful to have the type of event and in case of the type beeing some type of gradient the gradient channel to be returned with...

**Describe the bug** Changing the sampling duration in the example sequence `write_epi.py` affects the SAR calculation. Since TE and TR are fixed for the sequence, changing the sampling duration does...

This PR fix conflicts with recent changes to master. These mainly regards plot (only other change concerns mod_grad_axis, which I updated to match the new internal gradient representation). Specifically, seq.plot()...

This is just a draft PR to keep track of all changes and potential merge conflicts with recent commits...