-
Notifications
You must be signed in to change notification settings - Fork 108
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
Testing Tolerance.format_number #1380
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #1380 +/- ##
==========================================
+ Coverage 60.11% 60.19% +0.08%
==========================================
Files 207 207
Lines 22234 22248 +14
==========================================
+ Hits 13366 13393 +27
+ Misses 8868 8855 -13 ☔ View full report in Codecov by Sentry. |
@tomvanmele
Error:
|
this is happening because one of the earlier tests ( |
try adding this to the end of TOL.precision = TOL.PRECISION |
and also in |
Yea, it works once I change the two files as you say. Can you see if you want to merge this PR including the test_tolerance.py file I created. Best |
tests/compas/files/test_gltf.py
Outdated
|
||
|
||
# Reset the precision to its default value | ||
TOL.precision = 3 |
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.
i think this should be = TOL.PRECISION
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.
LGTM
This is an investigation about TOL.format_number behavior on GitHub CI.
The behavior of the function seems to be unstable across environments.
What type of change is this?
Checklist
Put an
x
in the boxes that apply. You can also fill these out after creating the PR. If you're unsure about any of them, don't hesitate to ask. We're here to help! This is simply a reminder of what we are going to look for before merging your code.CHANGELOG.md
file in theUnreleased
section under the most fitting heading (e.g.Added
,Changed
,Removed
).invoke test
).invoke lint
).compas.datastructures.Mesh
.