fix(database): add missing unique axis choices#378
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## develop #378 +/- ##
========================================
Coverage 83.80% 83.80%
========================================
Files 24 24
Lines 8167 8167
========================================
Hits 6844 6844
Misses 1323 1323
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
|
I am confused. It seems those are specified for space group dataset in the source code. Why were those for layer group blank? |
|
The axis choice for layer groups 3, 4 and 6 were blank because they only have one choice, i.e. the axis of the symmetry operation along |
|
It is my fault. I ignored the caption under the Table A1.4.2.7 Hall symbols of ITB. It says
Then it listed the default choice for different crystal systems. We did not stipulate the default unique axis for layer groups as it may be Some of the choice specified for space group dataset in the source code are also blank. The most obviously one is P 1, I think it is following ITB, i.e., blank denotes the default choice. Should we fill all of them? I do not think it is a good idea, as something like 'origin choice 1' is also confusing for people not familiar with crystallography. |
|
@site-g, thanks for your explanation. why, for layer group 3: p 1 1 2, 4: p 1 1 m and 6:p 1 1 2/m, were those blank? |
|
@site-g, is my understanding correct?
layer group space group |
The reference is Table 1.2.6.1 and Chapter 4 of ITE.
For example of layer group No.3 p 1 1 2 , Chapter 4 of ITE only shows one choice for this layer group. So I didn't specify the choice for the layer group. While for layer group No.8 p 2 1 1, Table 1.2.6.1 shows two different choices, so I specified them in
That's true. |
|
@site-g, thanks. It became clear. |
|
@lan496, I approved. |
|
@site-g This force push (https://github.com/spglib/spglib/compare/1f9aa8c002414be3d3037546da88d44e16eef8b7..6262da18f69492194d685fd2d4ab21f8d2fd91f3) looks another PR. |
|
Sorry, that force push seems to be blocked by branch protection rule. Now, I have merged this PR. |
In ITB, the space group Hall symbols table does not display the cell/axis/setting/origin choices if there is only one choice. This does not cause problem for space groups because the Monoclinic system space groups always have more than one choice. However, this cause problem for layer group 3: p 1 1 2, 4: p 1 1 m and 6:p 1 1 2/m, because the function
set_layer_monoclidepends on the unique axis choice. The code cannot determine the unique axis and fails to find the standard conventional cell.