A simple interpreter from PulSeq 1.4 to MARGA
Project description
marga_pulseq
Pulseq interpreter for vnegnev's MARcos fpGA (MARGA)
Usage:
TO INSTALL: this interpreter can be installed from PyPl with pip install marga_pulseq
To import the package: import marga_pulseq.interpreter
Create interpreter with marga_pulseq.interpreter.PSInterpreter. Run PSInterpreter.interpret() to get output array and dictionary. Specify a log path to log errors, warnings, and progress.
Arguments
rf_center (float): RF center (local oscillator frequency) in Hz.
rf_amp_max (float): Default 5e+3 -- System RF amplitude max in Hz.
grad_max (float): Default 1e+6 -- System gradient max in Hz/m.
gx_max (float): Default None -- System X-gradient max in Hz/m. If None, defaults to grad_max.
gy_max (float): Default None -- System Y-gradient max in Hz/m. If None, defaults to grad_max.
gz_max (float): Default None -- System Z-gradient max in Hz/m. If None, defaults to grad_max.
clk_t (float): Default 1/122.88 -- System clock period in us.
tx_t (float): Default 123/122.88 -- Transmit raster period in us. Will be overwritten if the PulSeq file includes a "tx_t" in the definitions.
grad_t (float): Default 1229/122.88 -- Gradient raster period in us. Will be overwritten if the PulSeq file includes a "grad_t" in the definitions.
tx_warmup (float): Default 500 -- Warmup time to turn on tx_gate before Tx events in us. Will be overwritten if the PulSeq file includes a "tx_warmup" in the definitions.
tx_zero_end (bool): Default True -- Force zero at the end of RF shapes
grad_zero_end (bool): Default True -- Force zero at the end of Gradient/Trap shapes
log_file (str): Default 'ps_interpreter' -- File (.log appended) to write run log into
log_level (int): Default 20 (INFO) -- Logger level, 0 for all, 20 to ignore debug.
Outputs
dict: tuple of numpy.ndarray time and update arrays, with variable name keys
dict: parameter dictionary containing raster times, readout numbers, and any file-defined variables
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file marga_pulseq-0.2.1.tar.gz.
File metadata
- Download URL: marga_pulseq-0.2.1.tar.gz
- Upload date:
- Size: 12.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7a7bba4db690d832cc932643f827a0071c7eb30cde0f6b172e7bde563c19aa61
|
|
| MD5 |
61f0ba2b88b82104a8a0004170723f6e
|
|
| BLAKE2b-256 |
3db722e34c22985353af593030287b2ad5b6e5981c8e67b3e0d8340baf1012c3
|
File details
Details for the file marga_pulseq-0.2.1-py3-none-any.whl.
File metadata
- Download URL: marga_pulseq-0.2.1-py3-none-any.whl
- Upload date:
- Size: 12.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
20f9e7ba54975e86a8426502606988f6b18e5926478abeeacd7e79eaec43d24e
|
|
| MD5 |
8130a1163bc4d7b16f0fbd7692fa0650
|
|
| BLAKE2b-256 |
3921ce9544ff746fbf23f3cd595f6f7f8c67a4fcaf33f20b8a27c0580df1b14e
|