Skip to content

Merge/develop into interim#235

Draft
rozyczko wants to merge 2 commits intointerim_updatesfrom
merge/develop_into_interim
Draft

Merge/develop into interim#235
rozyczko wants to merge 2 commits intointerim_updatesfrom
merge/develop_into_interim

Conversation

@rozyczko
Copy link
Copy Markdown
Member

Attempt at merging develop into interim

Resolved conflicts in fitting minimizers and their tests.

Decisions:
- minimizer_bumps.py: kept interim's monitor-based architecture (with progress_callback support) and discarded develop's _EvalCounter / bumps_fit() approach. Ported develop's user-facing UserWarning emission into interim's max_evaluations failure branch.
- minimizer_dfo.py: kept interim's restructured exception handling (_restore_parameter_values helper) and broader warning policy (warn on any non-success). Kept develop's explanatory comments about EXIT_SUCCESS / EXIT_MAXFUN_WARNING.
- minimizer_lmfit.py: kept develop's UserWarning emission on failed fit with a message.
- utils.py: kept interim's more descriptive 'Chi2 or reduced chi2 is not finite' ValueError; FitResults additions (n_evaluations, message, __repr__, reduced_chi2 rename) are common to both branches.
- test_minimizer_bumps.py / test_minimizer_dfo.py: kept interim's tests verbatim (develop's new tests targeted develop's removed _EvalCounter architecture).
- test_fitter.py: dropped develop-only test_bumps_max_evaluations_counts_objective_calls (asserts message format from develop's implementation).
- test_minimizer_lmfit.py / test_utils.py: accepted develop's additions (no architectural conflict).

Full test suite: 1251 passed, 1 skipped (baseline was 1237 passed).
@rozyczko rozyczko added [scope] maintenance Code/tooling cleanup, no feature or bugfix (major.minor.PATCH) [priority] highest Urgent. Needs attention ASAP labels Apr 23, 2026
@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 23, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 84.79%. Comparing base (4fc6d4b) to head (5723d25).

Additional details and impacted files

Impacted file tree graph

@@                 Coverage Diff                 @@
##           interim_updates     #235      +/-   ##
===================================================
- Coverage            85.70%   84.79%   -0.92%     
===================================================
  Files                   52       52              
  Lines                 4631     4636       +5     
===================================================
- Hits                  3969     3931      -38     
- Misses                 662      705      +43     
Flag Coverage Δ
integration ?
unittests 84.79% <100.00%> (+0.59%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files with missing lines Coverage Δ
.../easyscience/fitting/minimizers/minimizer_bumps.py 94.44% <100.00%> (-1.63%) ⬇️
...rc/easyscience/fitting/minimizers/minimizer_dfo.py 91.79% <ø> (-1.54%) ⬇️
.../easyscience/fitting/minimizers/minimizer_lmfit.py 94.96% <100.00%> (-2.10%) ⬇️

... and 3 files with indirect coverage changes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

[priority] highest Urgent. Needs attention ASAP [scope] maintenance Code/tooling cleanup, no feature or bugfix (major.minor.PATCH)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant