Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

marga_pulseq-0.2.0a0.tar.gz (12.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

marga_pulseq-0.2.0a0-py3-none-any.whl (12.4 kB view details)

Uploaded Python 3

File details

Details for the file marga_pulseq-0.2.0a0.tar.gz.

File metadata

  • Download URL: marga_pulseq-0.2.0a0.tar.gz
  • Upload date:
  • Size: 12.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.3

File hashes

Hashes for marga_pulseq-0.2.0a0.tar.gz
Algorithm Hash digest
SHA256 09abd320c7c3c07b6734ad77569a3ceecbd0e0415029ba43ee672969d7cdd059
MD5 698475efd38c49df0f765af57f79aedc
BLAKE2b-256 3ebd34dfb0624bf8deb96d29980e7969b08e755507e751519eeb7ae822a892a6

See more details on using hashes here.

File details

Details for the file marga_pulseq-0.2.0a0-py3-none-any.whl.

File metadata

  • Download URL: marga_pulseq-0.2.0a0-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

Hashes for marga_pulseq-0.2.0a0-py3-none-any.whl
Algorithm Hash digest
SHA256 f01e17f45b0a9397d402f4c6b4402f6ad1a5f3ab0f2903721e9453ac9bc7a4be
MD5 f59604e2fa84537438b77a58bff9be1f
BLAKE2b-256 7be83c8a18ce3b88b65109e853e37536ab3582165dd8feb7f9f2dabfb81a1cc8

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page