Skip to main content

A module for the NQRduck program (a simple python script™) to do pulse programming.

Project description

NQRduck Module: nqrduck-pulseprogrammer

A module for the nqrduck project. This module is used for graphical programming of pulse sequences for magnetic resonance experiments.

Installation

Requirements

Dependencies are handled via the pyproject.toml file.

Setup

To install the module you need the NQRduck core. You can find the installation instructions for the NQRduck core here.

Ideally you should install the module in a virtual environment. You can create a virtual environment by running the following command in the terminal:

python -m venv nqrduck
# Activate the virtual environment
. nqrduck/bin/activate

You can install this module and the dependencies by running the following command in the terminal while the virtual environment is activated and you are in the root directory of this module:

pip install .

Alternatively, you can install the module and the dependencies by running the following command in the terminal while the virtual environment is activated:

pip install nqrduck-pulseprogrammer

Usage

The module is used with the Spectrometer module. However you need to use an actual submodule of the spectromter module like:

The pulse programmer provides an event based graphical user interface for programming pulse sequences. The pulse sequence can be programmed by adding events to the sequence. Columns of the pulse programmer represent the different events of the pulse sequence. The rows of the pulse sequence are the 'Pulse Parameter Options' provided by the spectrometer module. Pulse sequences can be saved and loaded as a '.quack' file.

The following picture depicts an exemplary Free Induction Decay (FID) pulse sequence.

drawing
  • a.) The different pulse sequence events. The events can be added to the pulse sequence by clicking on the '+ New Event' button.
  • b.) The different 'Pulse Parameter Options' provided by the spectrometer module. The active spectrometer in the picture is the LimeNQR spectrometer. It provides 'Pulse Parameter Options' for 'TX' (Transmit) and 'RX' (Receive) events.
  • c.) The 'Pulse' of the FID sequence. The graphical representation changes based on the settings of the 'Pulse Parameter Options'.
  • d.) The 'RX' event of the FID sequence.
  • e.) The lengths of the different events. The lengths can be adjusted by clicking on the 'Pen' icon of the event.

When clicking on the 'Pulse Parameter Options' of a certain column and row, a dialog window opens. The dialog window provides the user with the possibility to adjust the 'Pulse Parameter Options' of the event. The dialog window is different for each 'Pulse Parameter Option'.

drawing
  • a.) A numerical input field for the 'Relative TX Amplitude' of the 'TX' Pulse Parameter Option.
  • b.) A numerical input field for the 'TX Phase' of the 'TX' Pulse Parameter Option.
  • c.) A function selection option for the 'TX Function' of the 'TX' Pulse Parameter Option. This adjust the pulse shape of the 'TX' event (Rect, Sinc, Gaussian, Custom).

License

This project is licensed under the MIT License - see the LICENSE file for details

Contributing

If you're interested in contributing to the project, start by checking out our nqrduck-module template. To contribute to existing modules, please first open an issue in the respective module repository to discuss your ideas or report bugs.

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

nqrduck_pulseprogrammer-0.0.4.tar.gz (856.6 kB view details)

Uploaded Source

Built Distribution

nqrduck_pulseprogrammer-0.0.4-py3-none-any.whl (13.5 kB view details)

Uploaded Python 3

File details

Details for the file nqrduck_pulseprogrammer-0.0.4.tar.gz.

File metadata

File hashes

Hashes for nqrduck_pulseprogrammer-0.0.4.tar.gz
Algorithm Hash digest
SHA256 0091d15257cc676fc63943eba5dec2bc5e6d62fd59c1aeee9ff57d5e3b2055ea
MD5 3859e577d11ba39394b3d060690ed642
BLAKE2b-256 81e76b3f1b43314f7d40be2b55f935ed548d4a2301fb2afe400a25db3c654ca4

See more details on using hashes here.

File details

Details for the file nqrduck_pulseprogrammer-0.0.4-py3-none-any.whl.

File metadata

File hashes

Hashes for nqrduck_pulseprogrammer-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 29c09d8f71f4cdf2896cf476d8bea3935c8776ffe64af14a4ac6a35833b0d783
MD5 ba0592fb79611e825b5d2dbd5d13c13b
BLAKE2b-256 dc107395682e26176c001a97958edd7bfdd1093569656e5d64bfb2c45186805b

See more details on using hashes here.

Supported by

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