Skip to content

Preproc main merge prep#158

Merged
IvanARashid merged 79 commits into
preproc-mainfrom
preproc-main-merge-prep
May 4, 2026
Merged

Preproc main merge prep#158
IvanARashid merged 79 commits into
preproc-mainfrom
preproc-main-merge-prep

Conversation

@IvanARashid
Copy link
Copy Markdown
Contributor

Describe the changes you have made in this PR

Re-organized the /src/originals folder with adjustments to imports in other files

Checklist

  • Self-review of changed code
  • Added automated tests where applicable
  • Update Docs & Guides

IvanARashid and others added 30 commits September 25, 2025 13:18
… bounds stored in the standardized OSIPI dictionary format. self.bounds will get manipulated by the individual algorithm subclasses
IvanARashid and others added 28 commits February 16, 2026 13:05
Fixed typo in IAR_LU_modified_mix "fix"
Filter f extremes and deduplicate generic signals
Replace bare 'except:' with 'except Exception as e:' in
OsipiBase.osipi_fit_full_volume() (line 377).

Before: bare except caught KeyboardInterrupt/SystemExit (cannot Ctrl+C)
and silently swallowed all errors with no diagnostic output.

After: only catches Exception subclasses, adds diagnostic print()
showing error type and message for debuggability.

No regressions: 1127 passed, 167 skipped, 22 xfailed, 6 xpassed.
Implement Weighted Least Squares (WLS) segmented IVIM fitting following
Veraart et al. (2013) NeuroImage 81:335-346.

Algorithm:
- Step 1: Fit D from high b-values via WLS on log-signal (w=S^2)
- Step 2: Fit D* from residuals at low b-values via WLS

New files:
- src/original/DT_IIITN/wls_ivim_fitting.py (raw algorithm, numpy only)
- src/standardized/DT_IIITN_WLS.py (OsipiBase standardized wrapper)

Modified files:
- tests/IVIMmodels/unit_tests/algorithms.json (register for automated tests)

Follows repository contribution structure:
- Fit code in src/original/Initials_Institution/
- Standardized wrapper in src/standardized/
- Registered in algorithms.json (no custom tests needed)

Test results: 1184 passed, 167 skipped, 22 xfailed, 6 xpassed.
27 test_volume errors are pre-existing (FileNotFoundError on Windows).
fix: replace bare except with except Exception in osipi_fit_full_volume
Added email addresses for authors and included optional dependencies for testing, documentation, and plotting.
feature: Add Weighted Least Squares (WLS) IVIM fitting algorithm — DT_IIITN (Feature #110)
@IvanARashid IvanARashid merged commit 579e82f into preproc-main May 4, 2026
8 checks passed
@IvanARashid IvanARashid deleted the preproc-main-merge-prep branch May 4, 2026 12:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants