Skip to main content
https://people.ee.ethz.ch/~jweine/cmrseq/latest/_images/logo_cmrseq.svg

Define your MRI sequences in pure python!

The cmrseq frame-work is build to define MRI sequences consisting of radio-frequency pulses, gradient waveforms and sampling events. All definitions follow the concept hierarchically assemble experiments where the basic building blocks (Arbitrary Gradients, Trapezoidals, RF-pulses and ADC-events) are forming the core functionality and are all instances of SequenceBaseBlock-instances. On instantiation all base-blocks are validated against the System specifications. Composition of base-blocks is done in a Sequence object. The Sequence object implements convenient definitions for addition and composition of multiple Sequence objects as well as to perform a variety on common operations on semantically grouped base-blocks.

Several semantically connected groups of building blocks (e.g. a slice selective excitation) are allready functionally defined in the parametric_definitions module. For a complete list of available definitions checkout the API-reference.

The original motivation for cmrseq was to create a foundation to define sequences for simulation experiments. Therefore Sequences can be easily gridded onto a regular (or even unregular grids with a maximum step width) grids. Furthermore, commonly useful functionalities as plotting, evaluation of k-space-trajectories, calculation of moments, etc.

To close the gap to real-world measurements, cmrseq includes an IO module that allows loading Phillips (GVE) sequence definitions as well as reading and writing Pulseq (>= 1.4) files, which then can be used to export the sequence to multiple vendor platforms. For more information on this file format please refer to the official PulSeq web-page.

Installation

The registry contains the versioned package, which can be installed using:

pip install cmrseq

There are only few package dependencies, namely: - numpy - matplotlib to display the waveforms - pint to assign physical units and assert correctness of calculations - tqdm progressbar visualizations - scipy selected functionalities

Documentation & Getting Started

The API documentation for released versions can be found here.

Metadata

Release files for cmrseq 0.20

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for cmrseq 0.20
File Size Uploaded
cmrseq-0.20.tar.gz 94.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for cmrseq 0.20
File Interpreter ABI Platform
cmrseq-0.20-py3-none-any.whl Python 3 none any Details

Total release size: 204.3 kB

Release files / cmrseq-0.20.tar.gz

Download URL cmrseq-0.20.tar.gz
Size 94.7 kB
Tags Source
SHA-256 checksum
How to use checksums
d923569f5894d5518358a1bbbd67e8513f173de43a2ff05b5bec671be319cd9b
BLAKE2b-256 checksum
How to use checksums
c50592ef38ec46b245bfce75fe825918eea6cfbf315bc09b471cfa623e11ac8f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.16

Release files / cmrseq-0.20-py3-none-any.whl

Download URL cmrseq-0.20-py3-none-any.whl
Size 109.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
18484a51f15c4eac610e951eb4c7e6195d5a9ba9a4843e92a4d27a0eb53e710a
BLAKE2b-256 checksum
How to use checksums
8dbd89ef680e2d9d2b187d99afcfd3a08dcaa75346909b32828ee6c0ed5a42ab
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.16

Release history Release notifications | RSS feed

0.27.1

2 release files

0.26

2 release files

0.25

2 release files

0.23

1 release file

0.22

2 release files

0.21

2 release files

This release

0.20 This release

2 release files

0.19

2 release files

0.18

2 release files

0.17

2 release files

0.16

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page