Add structure keys to _atom_site_*#44
Conversation
|
Should ATOM_SITE_FOURIER_WAVE_VECTOR get a structure id? I need to fully investigate how it interacts with CELL_WAVE_VECTOR |
|
Arg! Pretty sure that the following categories should have |
|
Fails semantic tests for: The errors are all of the same thing. Explaining The keys of The keys of The error is there because Do the |
I know that e.g. the mmCIF/DDL2 world consider all linked data names to be "the same thing" and go as far as listing all of the linked child data names in the parent definition. So it is open to us to just say that a common ancestor linked name is sufficient for two data names to be the same. The more DDL1-ish way of looking at it is that the child data name is restricted to the values taken by the parent, so you could have a smaller and smaller subset of possible values as you go down the linked data name hierarchy. I think that is unnecessarily restrictive and hierarchical thinking tends to be pointlessly restrictive in relational contexts. It also won't work in pdCIF for the This check passes for multiblock because we do as @rowlesmr proposes and link to the relevant data name in the parent category rather than the top level data name. So that's a way to get around the check if you want to. @vaitkus , could we perhaps modify that check to check for a common ancestor data name? |
Added notes about omitting structure_id for various ATOM_SITE categories
I must admit that I quite like the hierarchical approach as it allows to more easily detect and diagnose certain data discrepancies, e.g. situations where the
I would say that would be the way to go, at least for now.
Allowing common ancestry instead of direct ancestry seems like an extension of the current interpretation of parent-child looped categories. That being said, I will code the checks to whichever approach is agreed upon. Currently, I based the logic on the following fragment from a draft version of one of the ITG chapters [1]: Maybe there are other chapters that specify the nature of the looped child-parent [1] |
|
I am not bothered by any outcome, and can see the good of both approaches. I was just suprised coming from the pd background I think drawing from a smaller pool of possible values is a good reason to keep it that way 🤷 |
|
This PR has managed to get stuffed around. Easier to start again. |
close #43, see also #41
ATOM_SITEgained an extra key inmulti_block_core. This PR adds a linked structure dataname to each category referencingATOM_SITE.