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

Rounding errors when using Record node. #602

Merged
merged 1 commit into from
Sep 20, 2023
Merged

Conversation

weinbe58
Copy link
Member

When fixing up the assignments with the Record node in the AST, the original implementation used the float version of the waveform eval which causes rounding errors when trying to generate schemas. switching to evaluating waveform using Decimal to fix this issue.

@github-actions
Copy link
Contributor

github-actions bot commented Sep 20, 2023

PR Preview Action v1.4.4
Preview removed because the pull request was closed.
2023-09-20 14:02 UTC

@codecov
Copy link

codecov bot commented Sep 20, 2023

Codecov Report

Merging #602 (a67714b) into main (56ee04f) will not change coverage.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##             main     #602   +/-   ##
=======================================
  Coverage   82.84%   82.84%           
=======================================
  Files          88       88           
  Lines        7267     7267           
=======================================
  Hits         6020     6020           
  Misses       1247     1247           
Files Changed Coverage Δ
src/bloqade/codegen/common/assignment_scan.py 94.80% <100.00%> (ø)

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@weinbe58 weinbe58 enabled auto-merge (squash) September 20, 2023 13:59
@weinbe58 weinbe58 merged commit dcb475a into main Sep 20, 2023
9 checks passed
@weinbe58 weinbe58 deleted the bug-assignment-scan branch September 20, 2023 14:00
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.

1 participant