Update matrix dimension examples#47
Merged
jamesrhester merged 2 commits intoJul 10, 2026
Merged
Conversation
The new example makes it clear which list element maps to which dimension.
jamesrhester
approved these changes
Jul 10, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes issue #12.
While validating the category usage examples from various dictionaries I once again stumbled upon the question how items that have the Matrix container and a 1-D dimension (e.g. '[3]') should be expressed in a CIF file, i.e. is the top level List required (
[ a b c ]vs.[[ a b c ]]). From the discussion in #12 and usage example in the dictionaries, it seems that[ a b c ]is the expected correct form. As such, I tried to formalise it.I understand that DDLm is format-agnostic therefore I tried to specify it in general terms. Please rephrase if this does not seem suitable.
On a related note, it seems that we also do not specify anywhere how a Matrix container should be represented in CIF. At one point I just started assuming that a list of lists (each nested list representing a row). This interpretation is employed in value examples of other dictionaries so in a sense it is defined through usage.