-
Notifications
You must be signed in to change notification settings - Fork 56
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
Add test that runs the overlap check on the main geometries. #231
Conversation
The tests are actually failing because there is an overlap in the NEXT100 geometry (so the tests are working!). After the merging of PR #222 they shouldn't be failing anymore, therefore the approval of this PR will be done after the other one. |
a704d47
to
6e37db0
Compare
Now that PR #222 is merged, I've read through the code and I see no clear issues with it. However, I'm still having issues from pytest, and github seems unable to run said tests as well. The error that I appear to be getting is:
I've added a file more information from the test. It appears based on this line: Are there still overlaps occurring that are causing these tests to fail? |
Yes, I'm aware of that! It's an overlap in a different geometry, which @MiryamMV is taking care of. In fact, this PR has proven extremely useful because it detected this second overlap, too, which had been overseen. |
Perfect, I'm glad to hear it is working as intended 😺. I'll wait until I'm notified that said change has occurred before running it through again and approving. As a side-note, it appears (although I'm likely mistaken) that the overlap tests increase the time of the pytests quite significantly (the github bot took 1h30m before reaching the overlapping geometries). |
Yes, I noticed the time issue, which is expected, because the precision for the overlap check has been increased w.r.t. the default one, to detect errors even in complex geometries. I'm trying to see if there's the possibility of adding a flag to decide if running the slow tests or not. It would be good to run them always before merging a PR, but maybe it's not necessary during debugging. |
8242de3
to
c154a7d
Compare
I just rebased this branch on the updated master, with the remaining overlap fixed. I also added the |
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.
This PR adds an overlap check to the tests for the main geometries, and includes a flag to disable the overlap checks to increase runtime (as the overlap checks are quite computing intensive). Good job @paolafer!
This PR adds the overlap checks to the automatic tests for the main geometries.
The main modification is the addition of a new exception class, which is custom-made with the warnings turned into exceptions. A new command line flag is also added to execute the check before running any events.