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

GridLocations nondeterministically returns incorrect result inside Builder #508

Closed
MatthiasJ1 opened this issue Jan 28, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@MatthiasJ1
Copy link
Contributor

@jdegenstein reports the following snippet nondeterministically fails

with BuildSketch() as s:
    with GridLocations(2,2,25,25):
        Rectangle(1,1)
assert len(s.sketch.faces()) == 25*25

other variations work so this appears to be an issue limited to the Builder API

s = Sketch() + GridLocations(2,2,25,25) * Rectangle(1,1)
assert len(s.faces()) == 25*25 # ok
@gumyr gumyr added the enhancement New feature or request label Jan 29, 2024
@gumyr gumyr added this to the Gating Release 1.0.0 milestone Jan 29, 2024
@gumyr
Copy link
Owner

gumyr commented Jan 29, 2024

With the above fix this failure doesn't happen after at least 100 attempts.

@gumyr gumyr closed this as completed Jan 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants