-
Notifications
You must be signed in to change notification settings - Fork 616
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 postselection Nan sampling with different environment setups #6777
Conversation
Automatic update of stable requirement files to snapshot valid python environments. Because bots are not able to trigger CI on their own, please do so by pushing an empty commit to this branch using the following command: ``` git commit --allow-empty -m 'trigger ci' ``` Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: Christina Lee <christina@xanadu.ai>
Created automatically from the `pennylane_version_bump.sh` script. - **Remove rc0 from version number** - **Changes to set up 0.41.0 dev branch** --------- Co-authored-by: Mudit Pandey <mudit.pandey@xanadu.ai>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Possible alternative suggestion, but otherwise LGTM!
Co-authored-by: Andrija Paurevic <46359773+andrijapau@users.noreply.github.com>
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## v0.40.0-rc0 #6777 +/- ##
==============================================
Coverage ? 99.60%
==============================================
Files ? 476
Lines ? 45232
Branches ? 0
==============================================
Hits ? 45055
Misses ? 177
Partials ? 0 ☔ View full report in Codecov by Sentry. |
Context:
When running tests locally, I was getting failures like:
We had logic to catch the error
'probabilities contain NaN'
, but something about my versioning gives a slightly different capitalization. To prevent this happening of other people, I updated the error catching to be capitalization independent.Description of the Change:
Catch both
"Probabilities contain NaN"
and"probabilities contain NaN"
.Benefits:
Tests pass locally for my environment.
Possible Drawbacks:
Still a bit error prone. I'm also not sure what about my environment gives different capitalization.
Related GitHub Issues: