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: fix bugs in layoutelements #393

Merged
merged 7 commits into from
Oct 16, 2024
Merged

fix: fix bugs in layoutelements #393

merged 7 commits into from
Oct 16, 2024

Conversation

badGarnet
Copy link
Collaborator

@badGarnet badGarnet commented Oct 15, 2024

This PR fixes two bugs:

  • fix a type casting issue when subtracting a int array with a float. This popped up when testing with unstructured, and some sources of element coordinates are of int type. This PR adds a new unit test case for int coord type with the grouping function
  • fix element class id 0 becomes None bug: this happens when dumping LayoutElements as a list of LayoutElement. When an element class id is 0 the logic on main would treat it as no existing and use None as the type.

Copy link
Contributor

@christinestraub christinestraub left a comment

Choose a reason for hiding this comment

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

LGTM!

@badGarnet badGarnet merged commit c53866b into main Oct 16, 2024
5 checks passed
@badGarnet badGarnet deleted the fix/incorrect-type-mixing branch October 16, 2024 18:16
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