Simple Python script to interact with various python modules used for magnetic resonance spectroscopy.
Project description
NQRduck
Installation
Requirements
- Python 3.10+
- pip
- virtualenv
Setup
-
Clone the repository
-
Create a virtual environment and activate it:
python -m venv venv source venv/bin/activate
You can install the nqrduck core via PyPi or from the cloned repository.
3. Install the package with pip install .[all]
to install all available NQRduck modules inside the cloned repository or just pip install "nqrduck[all]"
to install the core package from PyPi.
Careful here you might need additional dependencies specified in the respective module repositories.
If you only want to install some base modules use pip install .[base]
inside the cloned repository or with pip install -U "nqrduck[base]"
.
You can find the different modules here.
4. Run the program with nqrduck
.
Usage
Individual features of the software can be installed as separate Python packages, like spectrometer control, pulse sequence programming or simulation of magnetic resonance experiments. The available functionality of the NQRduck program therefore depends on the installed packages.
The UI is structured as follows:
The UI is separated into different areas. Section 'a', highlighted in red, represents the menu bar used for general settings of the program and spectrometer selection. Section 'b', outlined in green, allows switching among various modules within the main view of the core, with the active module displayed in bold. Section 'c', depicted in blue, is the active module's view. The currently active module in the figure is the nqrduck-measurement module used for single frequency mangetic resonance experiments. The overall application is part of the NQRduck core and opens when the NQRduck core is started.
Uninstall
To uninstall the nqrduck program you can run the following command in the terminal while the virtual environment is activated:
nqrduck --uninstall
License
This project is licensed under the MIT License - see the LICENSE file for details
Contributing: Developing NQRduck modules
A template module is provided here. It is a good starting point for developing new modules.
If you want to contribute to the core, please add an issue or a pull request :).
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
Built Distribution
File details
Details for the file nqrduck-0.0.11.tar.gz
.
File metadata
- Download URL: nqrduck-0.0.11.tar.gz
- Upload date:
- Size: 1.1 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.11.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 655a079b91a3960765d11e0727961af44de4a7403fc542267f907a85baa85df0 |
|
MD5 | e0f65ff9292da391d24d9d90e23b77da |
|
BLAKE2b-256 | ab699825d8f9b26121d2dfebe2496350045aa8e4b9b6cff4b09cefe325bdac9c |
File details
Details for the file nqrduck-0.0.11-py3-none-any.whl
.
File metadata
- Download URL: nqrduck-0.0.11-py3-none-any.whl
- Upload date:
- Size: 159.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.11.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 47a25aa883fd3ba3a4963583774c37276273a47d35d3eff1d79cb5712c691af0 |
|
MD5 | ac6f02e807f06f36868ed739991fa9a2 |
|
BLAKE2b-256 | d84f934b469a4c705931825caae07e33444979de9c4f2c8b845f3259e83fa8a6 |