Skip to content

Fix bugs in interpolation constraints module - #892

Open
maxbriel wants to merge 1 commit into
mainfrom
fix/constraints-bugs
Open

Fix bugs in interpolation constraints module#892
maxbriel wants to merge 1 commit into
mainfrom
fix/constraints-bugs

Conversation

@maxbriel

Copy link
Copy Markdown
Collaborator
  • correct_sum: rescale with the resolved 'target' instead of the raw 'constraint' value, which raised a TypeError when the constraint was given as a string fieldname. This mostly works because target is often equal to a float and then targe = constraint.

  • check_order_of_constraints: access constraint dict fields via [] (was broken attribute access), fix the 'upate' -> 'update' typo that raised AttributeError, and handle type-2/type-3 constraints so the function actually runs and reports ordering issues. Function is not really used, but this allows it to handle the other constraint types.

- correct_sum: rescale with the resolved 'target' instead of the raw
  'constraint' value, which raised a TypeError when the constraint was
  given as a string fieldname.
- check_order_of_constraints: access constraint dict fields via [] (was
  broken attribute access), fix the 'upate' -> 'update' typo that raised
  AttributeError, and handle type-2/type-3 constraints so the function
  actually runs and reports ordering issues.
@maxbriel maxbriel self-assigned this Aug 14, 2026
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.

2 participants