Skip to content

Add ParameterAnalysis#167

Merged
henrikjacobsenfys merged 24 commits into
developfrom
parameter-analysis
May 12, 2026
Merged

Add ParameterAnalysis#167
henrikjacobsenfys merged 24 commits into
developfrom
parameter-analysis

Conversation

@henrikjacobsenfys

@henrikjacobsenfys henrikjacobsenfys commented Apr 27, 2026

Copy link
Copy Markdown
Member

To fit the fit result from Analysis to either a ModelComponent, ComponentCollection or DiffusionModel.

@henrikjacobsenfys henrikjacobsenfys added [scope] enhancement Adds/improves features (major.MINOR.patch) [priority] medium Normal/default priority labels Apr 27, 2026
@codecov

codecov Bot commented Apr 27, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 98.85932% with 3 lines in your changes missing coverage. Please review.
✅ Project coverage is 98.18%. Comparing base (152c5a0) to head (be30b50).

Files with missing lines Patch % Lines
src/easydynamics/analysis/parameter_analysis.py 98.37% 1 Missing and 2 partials ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##           develop     #167      +/-   ##
===========================================
+ Coverage    98.12%   98.18%   +0.06%     
===========================================
  Files           45       47       +2     
  Lines         2874     3137     +263     
  Branches       511      568      +57     
===========================================
+ Hits          2820     3080     +260     
- Misses          34       35       +1     
- Partials        20       22       +2     
Flag Coverage Δ
integration 46.15% <24.33%> (-2.00%) ⬇️
unittests 98.18% <98.85%> (+0.06%) ⬆️

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

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@henrikjacobsenfys henrikjacobsenfys marked this pull request as ready for review April 27, 2026 19:50
@henrikjacobsenfys henrikjacobsenfys marked this pull request as draft April 28, 2026 11:52
henrikjacobsenfys and others added 6 commits April 28, 2026 14:33
Co-authored-by: Copilot <copilot@github.com>
Co-authored-by: Copilot <copilot@github.com>
Co-authored-by: Copilot <copilot@github.com>
@henrikjacobsenfys henrikjacobsenfys marked this pull request as ready for review May 4, 2026 13:27
henrikjacobsenfys and others added 2 commits May 4, 2026 15:27
Co-authored-by: Copilot <copilot@github.com>
Co-authored-by: Copilot <copilot@github.com>
@henrikjacobsenfys henrikjacobsenfys linked an issue May 5, 2026 that may be closed by this pull request

@rozyczko rozyczko left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Well written functionality. Just a few minor comments

Comment thread src/easydynamics/analysis/parameter_analysis.py
Comment thread src/easydynamics/analysis/parameter_analysis.py
Comment on lines +96 to +97
def bindings(self) -> list[FitBinding] | None:
"""

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

self._binding is always a list

def _verify_bindings(self, bindings: FitBinding | list[FitBinding] | None) -> list[FitBinding]:

so | None is wrong here.

Comment on lines +23 to +24
FIT_FUNCTION_TYPE = ModelComponent | ComponentCollection | DiffusionModelBase

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This seems to be unused. Consider removing

Comment on lines +30 to +31
Can be used to fit paramters to ModelComponents, ComponentCollections, or DiffusionModelBase
objects, and to plot the parameters and fit results. The parameters to be analyzed can be

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

paramters -> parameters

@henrikjacobsenfys

henrikjacobsenfys commented May 8, 2026

Copy link
Copy Markdown
Member Author

@AndrewSazonov Do you know why these tests fail? All I did was merge develop (tests failed), pixi update and pixi run fix...

The tests worked on the branch that was merged into develop, so I have no idea what went wrong..

@henrikjacobsenfys henrikjacobsenfys merged commit b735dad into develop May 12, 2026
40 of 42 checks passed
@henrikjacobsenfys henrikjacobsenfys deleted the parameter-analysis branch June 3, 2026 07:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

[priority] medium Normal/default priority [scope] enhancement Adds/improves features (major.MINOR.patch)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Make ParameterAnalysis

2 participants