Skip to content

Replaced CollectionBase with EasyList #304 - #305

Merged
rozyczko merged 11 commits into
sampler-engine-structure-280from
easylist-on-multifitter
Sep 22, 2026
Merged

rozyczko merged 11 commits into
sampler-engine-structure-280from
easylist-on-multifitter

Conversation

@rozyczko

@rozyczko rozyczko commented Sep 4, 2026

Copy link
Copy Markdown
Member

This pull request replaces the deprecated CollectionBase container with the new EasyList for aggregating fit objects in MultiFitter.

@rozyczko rozyczko added [scope] maintenance Code/tooling cleanup, no feature or bugfix (major.minor.PATCH) [priority] high Should be prioritized soon [area] base classes Changes to or creation of new base classes labels Sep 4, 2026
@codecov

codecov Bot commented Sep 4, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 91.89189% with 3 lines in your changes missing coverage. Please review.
✅ Project coverage is 83.64%. Comparing base (693e11c) to head (eb73c97).
⚠️ Report is 5 commits behind head on sampler-engine-structure-280.

Files with missing lines Patch % Lines
src/easyscience/job/theoreticalmodel.py 0.00% 2 Missing ⚠️
src/easyscience/io/serializer_component.py 50.00% 1 Missing ⚠️
Additional details and impacted files

Impacted file tree graph

@@                       Coverage Diff                        @@
##           sampler-engine-structure-280     #305      +/-   ##
================================================================
- Coverage                         83.82%   83.64%   -0.18%     
================================================================
  Files                                68       68              
  Lines                              5348     5253      -95     
================================================================
- Hits                               4483     4394      -89     
+ Misses                              865      859       -6     
Flag Coverage Δ
unittests 83.64% <91.89%> (-0.18%) ⬇️

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

Files with missing lines Coverage Δ
src/easyscience/base_classes/based_base.py 83.48% <100.00%> (ø)
src/easyscience/base_classes/easy_list.py 96.25% <100.00%> (+0.04%) ⬆️
src/easyscience/base_classes/new_base.py 100.00% <ø> (ø)
src/easyscience/fitting/fitter.py 91.33% <ø> (-0.20%) ⬇️
src/easyscience/fitting/multi_fitter.py 98.73% <100.00%> (+0.14%) ⬆️
src/easyscience/io/serializer_base.py 90.20% <ø> (ø)
src/easyscience/variable/descriptor_any_type.py 96.87% <100.00%> (ø)
src/easyscience/variable/descriptor_array.py 89.56% <100.00%> (ø)
src/easyscience/variable/descriptor_base.py 95.83% <100.00%> (+1.26%) ⬆️
src/easyscience/variable/descriptor_bool.py 96.42% <ø> (-0.13%) ⬇️
... and 5 more

... and 13 files with indirect coverage changes

@damskii9992 damskii9992 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Small comments only, otherwise it looks good to me.

Comment thread src/easyscience/fitting/multi_fitter.py Outdated
Comment on lines 28 to 29
fit_objects: list | None = None,
fit_functions: list[Callable] | None = None,

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this be typehinted as sequence, since we support any sequence?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes. And more. We have to properly initialize fit_objects and fit_functions, otherwise the code will crash on the subsequent indexing... oops. Fixed.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You still didn't change the typehint lol.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What do you mean I didn't... I just did! Now.

Comment thread src/easyscience/fitting/fitter.py Resolved
Comment thread tests/unit/fitting/test_multi_fitter.py Resolved
Comment thread tests/unit/fitting/test_multi_fitter.py Resolved
Comment thread tests/unit/fitting/test_multi_fitter.py Resolved
@damskii9992

Copy link
Copy Markdown
Contributor

I believe you can merge this one now, btw :)

@rozyczko
rozyczko merged commit 6a7fa25 into sampler-engine-structure-280 Sep 22, 2026
28 checks passed
@damskii9992
damskii9992 deleted the easylist-on-multifitter branch September 24, 2026 07:41
@rozyczko rozyczko mentioned this pull request Oct 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

[area] base classes Changes to or creation of new base classes [priority] high Should be prioritized soon [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.

2 participants