This repository is a proving ground for the variationally reweighted least squares (VRLS) algorithm, in the specialized context of nonuniformly sampled nuclear magnetic resonance (NUS NMR) acquisition.
To build the vrls-nmr extension module, you will need PyTorch and a complete compiler toolchain,
pip install torch pybind11and then build and install the module:
python3 setup.py build
python3 setup.py bdist_wheel
pip install dist/*whlRunning make or make build will run the same steps.
A small set of unit tests is available in the test directory and may be executed using pytest:
pip install pytest
pytest testAnalyses in the notebooks directory may be opened using marimo:
pip install marimo
cd notebooks/
marimo edit param-tuning.pyThe vrls-nmr extension module is released under the MIT license. See the LICENSE.md file for the complete license terms.