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

Fix parameters in tessilator functions #16

Merged
merged 4 commits into from
May 21, 2024

Conversation

hamogu
Copy link
Contributor

@hamogu hamogu commented May 20, 2024

This PR has multipke parts, shown as separate commits that you might want to review separately:

  • In some cases, functions would accept parameters, but not actually use them (e.g. the accept store_lc in the function signature, but then in the code they would not use that value and insteald always call the lower-level function with store_lc=False).
  • In some cases, parmaeters were missing. THey are used in a function, but never defined - meaning that function will fail if ever called. Clearly, we don't test enough or we would have found that.
  • The cutour_X functions were unneccessarily complicated. So, instead of makeing all four function signatures consistent, I just integrated all the functionality into a single function.

hamogu added 4 commits May 20, 2024 09:02
Except for the error messages printed out, these functions were essentially identical (and probably developed by copying and pasting from one to the other). I combined them back into one function, so that we don't have to maintain them separately. In fact, one of them had an error in it (I think a typo in a variable name) that would have made it fail, if it was ever used (which shows our test coverage was insufficient).
@alexbinks alexbinks merged commit 8e70b95 into alexbinks:main May 21, 2024
1 check passed
@alexbinks
Copy link
Owner

Thank you. I'm happy to implement all these changes!

@hamogu hamogu deleted the unused_tessilator_params branch May 21, 2024 10:44
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