Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug fix in matching routine #38

Merged
merged 5 commits into from
Mar 23, 2021
Merged

Bug fix in matching routine #38

merged 5 commits into from
Mar 23, 2021

Conversation

fsoubelet
Copy link
Owner

  • Fix an issue where matching would not send constraints if they were given the value 0.
  • Change makedipedge default value to False when slicing, to compensate the effect of the default style being TEAPOT.

The expressions were evaluating (if q1_target and q2_target and dq1_target and dq2_target), which would not evaluate to True in case the provided targets are given as 0.
A quick fix is to evaluate with `is not None`, which will then properly evaluate to True if the passed value is 0
@codeclimate
Copy link

codeclimate bot commented Mar 23, 2021

Code Climate has analyzed commit 1f854c2 and detected 0 issues on this pull request.

The test coverage on the diff in this pull request is 100.0% (50% is the threshold).

This pull request will bring the total coverage in the repository to 97.6% (0.0% change).

View more on Code Climate.

@fsoubelet fsoubelet merged commit 36c4399 into master Mar 23, 2021
@fsoubelet fsoubelet deleted the next_minor branch March 23, 2021 19:09
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.

None yet

1 participant