Increase max attempts for reduced cells#339
Increase max attempts for reduced cells#339LecrisUT merged 9 commits intospglib:developfrom atztogo:reduce-cell-max-attempt
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:
|
lan496
left a comment
There was a problem hiding this comment.
Sorry for the late reply. I have left an optional comment
|
I'll work on writing the tests today |
Signed-off-by: Cristian Le <[email protected]>
Signed-off-by: Cristian Le <[email protected]>
Signed-off-by: Cristian Le <[email protected]>
Signed-off-by: Cristian Le <[email protected]>
LecrisUT
left a comment
There was a problem hiding this comment.
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.
lan496
left a comment
There was a problem hiding this comment.
setenv looks nice for testing max attempts. I've left similar suggestions as I commented.
Co-authored-by: Kohei Shinohara <[email protected]>
Signed-off-by: Cristian Le <[email protected]>
|
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
pytestand compared the run time, I didn't find noticeable difference.