-
Notifications
You must be signed in to change notification settings - Fork 117
Increase max attempts for reduced cells #339
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
Conversation
Let's expose this via environment variable. I'll add a review with the interface |
Is this to be done in C code or in cmake? |
C code, it should be dynamic |
I've added an implementation to get the |
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## develop #339 +/- ##
===========================================
+ Coverage 83.68% 83.80% +0.11%
===========================================
Files 24 24
Lines 8144 8167 +23
===========================================
+ Hits 6815 6844 +29
+ Misses 1329 1323 -6
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
Thanks @LecrisUT. I will add tests. |
I think this one might be a bit tricky if you are not used to making test fixtures. If you need more help, ping me next week and I'll try to add that: |
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.
Sorry for the late reply. I have left an optional comment
I'll work on writing the tests today |
Signed-off-by: Cristian Le <cristian.le@mpsd.mpg.de>
Signed-off-by: Cristian Le <git@lecris.dev>
Signed-off-by: Cristian Le <git@lecris.dev>
Signed-off-by: Cristian Le <git@lecris.dev>
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.
In principle it would be nice to move get_num_attempts
(as well as other get_debug
and get_warning
) to a global call, but I am putting off that implementation for now.
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.
setenv
looks nice for testing max attempts. I've left similar suggestions as I commented.
Co-authored-by: Kohei Shinohara <kohei19950508@gmail.com>
Signed-off-by: Cristian Le <cristian.le@mpsd.mpg.de>
I forgot to add a test for spglib_error. Let me add that real quick and then it's 👍 from me |
Currently max number of iteration to attempt Niggli and Delaunay cells are 100. I want to increase the number because this number is not enough for highly oblique choice of basis vectors under the same lattice.
This PR suggests increasing the number from 100 to 1000.
This change may As far as I ran simply
pytest
and compared the run time, I didn't find noticeable difference.