Code Reference ============== **AMARES Fitting Kernel** ------------------------- Prior Knowledge Parsing Modules ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .. automodule:: pyAMARES.kernel.PriorKnowledge :members: :show-inheritance: FID modeling functions ~~~~~~~~~~~~~~~~~~~~~~ .. automodule:: pyAMARES.kernel.fid :members: :show-inheritance: AMARES fitting function by lmfit ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .. automodule:: pyAMARES.kernel.lmfit :members: :show-inheritance: Objective Function ~~~~~~~~~~~~~~~~~~ .. automodule:: pyAMARES.kernel.objective_func :members: :show-inheritance: **Libs** -------- .. automodule:: pyAMARES.libs :members: :show-inheritance: :no-index: MPFIR # Add this line to exclude MPFIR from indexing at this level MPFIR ~~~~~ .. automodule:: pyAMARES.libs.MPFIR :members: :show-inheritance: :exclude-members: fircls1, leja, minphlpnew, pbfirnew HSVD initialization ~~~~~~~~~~~~~~~~~~~ .. automodule:: pyAMARES.util.hsvd :members: :show-inheritance: **HLSVDPro** ~~~~~~~~~~~~ The `hlsvd` documentation can be found in the `VESPA documentation `_. **Logging System** ~~~~~~~~~~~~~~~~~~ .. automodule:: pyAMARES.libs.logger :members: :show-inheritance: f"The matrix may be ill-conditioned. Condition number is high: " f"{condition_number:3.3e}" **Utilities** ------------- Cramer Rao Lower Bound Estimation ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .. automodule:: pyAMARES.util.crlb :members: :show-inheritance: :exclude-members: extract_strengs, get_matches AMARES Report Generation ~~~~~~~~~~~~~~~~~~~~~~~~ .. automodule:: pyAMARES.util.report :members: :show-inheritance: :exclude-members: contains_non_numeric_strings, highlight_rows_crlb_less_than_02 Visualization of Fitting Results ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .. automodule:: pyAMARES.util.visualization :members: :show-inheritance: Multiprocessing ~~~~~~~~~~~~~~~ .. automodule:: pyAMARES.util.multiprocessing :members: :show-inheritance: **File I/O** ------------ .. note:: This module is still under active development. pyAMARES is designed to work with ``FID`` as a 1D NumPy complex array, making it compatible with other Python NMR/MRS libraries. Currently, ``pyAMARES.fileio.readmrs`` supports relatively general data formats, such as CSV, ASCII, Python NumPy, and Matlab MAT-files or Version 7.3 MAT-files. Users are encouraged to develop and use their own FID I/O modules. Read 2-Column FID Data ~~~~~~~~~~~~~~~~~~~~~~ .. automodule:: pyAMARES.fileio.readmat :members: :show-inheritance: Read GE MNS Research Pack fidall Data ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .. automodule:: pyAMARES.fileio.readfidall :members: :show-inheritance: A Wrapper for Reading NifTI-MRS ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .. automodule:: pyAMARES.fileio.readnifti :members: :show-inheritance: