nqrduck-measurement/README.md

60 lines
2.6 KiB
Markdown
Raw Permalink Normal View History

2024-02-28 09:00:51 +00:00
# NQRduck Module: nqrduck-measurement
2024-02-28 08:59:47 +00:00
A module for the [nqrduck](https://github.com/nqrduck/nqrduck) project. This module is used for single frequency magnetic resonance experiments.
## Installation
### Requirements
2024-05-22 15:51:41 +00:00
2024-02-28 08:59:47 +00:00
Dependencies are handled via the pyproject.toml file.
### Setup
2024-05-22 15:51:41 +00:00
2024-02-28 08:59:47 +00:00
To install the module you need the NQRduck core. You can find the installation instructions for the NQRduck core [here](https://github.com/nqrduck/nqrduck).
Ideally you should install the module in a virtual environment. You can create a virtual environment by running the following command in the terminal:
2024-05-22 15:51:41 +00:00
2024-02-28 08:59:47 +00:00
```bash
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:
2024-05-22 15:51:41 +00:00
2024-02-28 08:59:47 +00:00
```bash
pip install .
```
2024-04-18 17:48:53 +00:00
Alternatively, you can install the module and the dependencies by running the following command in the terminal while the virtual environment is activated:
2024-05-22 15:51:41 +00:00
2024-04-18 17:48:53 +00:00
```bash
pip install nqrduck-measurement
```
2024-02-28 08:59:47 +00:00
## Usage
2024-05-22 15:51:41 +00:00
2024-04-10 13:47:34 +00:00
The module is used with the [Spectrometer](https://github.com/nqrduck/nqrduck-spectrometer) module. However you need to use an actual submodule of the spectrometer module like:
2024-02-28 08:59:47 +00:00
- [nqrduck-spectrometer-limenqr](https://github.com/nqrduck/nqrduck-spectrometer-limenqr) A module used for magnetic resonance experiments with the LimeSDR (USB or Mini 2.0).
- [nqrduck-spectrometer-simulator](https://github.com/nqrduck/nqrduck-spectrometer-simulator) A module used for simulating magnetic resonance experiments.
2024-05-22 15:51:41 +00:00
The pulse sequence and spectrometer settings can be adjusted using the 'Spectrometer' tab.
2024-04-18 17:48:53 +00:00
<img src="https://github.com/nqrduck/nqrduck-measurement/raw/0b28ae6b33230c6ca9eda85bd18de7cbcade27d1/docs/img/measurement_ui_labeled_v2.png" alt="drawing" width="800">
2024-02-28 08:59:47 +00:00
- a.) The experiments settings for frequency and number of averages.
- b.) The signal processing settings for the measurement.
- c.) The 'Measurement Plot'. Here the measured data is displayed. One can switch time and frequency domain plots.
- d.) The import and export buttons for the measurement data.
2024-05-22 15:51:41 +00:00
You can then remove the folder of the virtual environment.
2024-02-28 08:59:47 +00:00
## License
2024-05-22 15:51:41 +00:00
2024-02-28 08:59:47 +00:00
This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details
## Contributing
2024-05-22 15:51:41 +00:00
2024-02-28 08:59:47 +00:00
If you're interested in contributing to the project, start by checking out our [nqrduck-module template](https://github.com/nqrduck/nqrduck-module). To contribute to existing modules, please first open an issue in the respective module repository to discuss your ideas or report bugs.