Skip to content

Fix bumps constrained fit#3375

Merged
krzywon merged 3 commits intorelease-6.1.0from
fix-bumps-constrained-fit
May 13, 2025
Merged

Fix bumps constrained fit#3375
krzywon merged 3 commits intorelease-6.1.0from
fix-bumps-constrained-fit

Conversation

@bmaranville
Copy link
Copy Markdown
Contributor

Description

Allows running constrained fits with new bumps version >= 1.0.0b6
Fixes #3370

How Has This Been Tested?

Ran a test constraint fit with the fix, and it works without the error described in #3370
NOTE: the convergence plot doesn't seem to work when running a consrtrained fit, which is I think a different issue.

Review Checklist:

[if using the editor, use [x] in place of [ ] to check a box]

Documentation (check at least one)

  • There is nothing that needs documenting
  • Documentation changes are in this PR
  • There is an issue open for the documentation (link?)

Installers

  • There is a chance this will affect the installers, if so
    • Windows installer (GH artifact) has been tested (installed and worked)
    • MacOSX installer (GH artifact) has been tested (installed and worked)

Licencing (untick if necessary)

  • The introduced changes comply with SasView license (BSD 3-Clause)

@bmaranville bmaranville changed the base branch from main to release-6.1.0 May 12, 2025 14:21
Copy link
Copy Markdown
Contributor

@krzywon krzywon left a comment

Choose a reason for hiding this comment

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

This allows constrained fits to run again, but logger warnings are now triggered on line 360 of BumpsFitting.py complaining the slot object for constrained parameters are no longer uncertainty objects. A quick debug says they are now bumps.parameter.Variable objects.

@bmaranville
Copy link
Copy Markdown
Contributor Author

Ah, so this doesn't fix the problem.

Copy link
Copy Markdown
Contributor

@krzywon krzywon left a comment

Choose a reason for hiding this comment

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

Coupled with the latest change to bumps, constrained fits now run. Approved

@krzywon krzywon merged commit 60b2e82 into release-6.1.0 May 13, 2025
26 checks passed
@krzywon krzywon deleted the fix-bumps-constrained-fit branch May 13, 2025 14:13
@bmaranville bmaranville mentioned this pull request Dec 8, 2025
8 tasks
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.

Error when running constrained fit

2 participants