Skip to content

add linked *.structure_id key to ATOM_SITE_*#68

Open
rowlesmr wants to merge 42 commits into
COMCIFS:mainfrom
rowlesmr:ATOM_SITE_-add-structure-id-keys
Open

add linked *.structure_id key to ATOM_SITE_*#68
rowlesmr wants to merge 42 commits into
COMCIFS:mainfrom
rowlesmr:ATOM_SITE_-add-structure-id-keys

Conversation

@rowlesmr

@rowlesmr rowlesmr commented Jul 7, 2026

Copy link
Copy Markdown
Contributor

close #43, see also #41

ATOM_SITE gained an extra key in multi_block_core. This PR adds a linked structure dataname to each category referencing ATOM_SITE.

.

The previious PR got smushed somehow, and couldn't be trusted.

@jamesrhester jamesrhester left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry I didn't think of this earlier. These _structure.id link definitions can be farmed out to templ_attr.cif as a generic import. If generic, the definition text could read perhaps "The structure to which this data name relates. If the data block defines a single value for _structure.id, or _structure.id is missing and the data block contains a single structure, this data name may be omitted."

I prefer the generic import approach as that reduces the amount of space taken up in the dictionary to something more in keeping with their significance.

@rowlesmr

rowlesmr commented Jul 8, 2026

Copy link
Copy Markdown
Contributor Author

I'll have a fiddle

@rowlesmr

rowlesmr commented Jul 8, 2026

Copy link
Copy Markdown
Contributor Author

That file is a little wild-west: COMCIFS/Attribute_Templates#16

@rowlesmr rowlesmr closed this Jul 8, 2026
@rowlesmr rowlesmr reopened this Jul 8, 2026
@rowlesmr

rowlesmr commented Jul 8, 2026

Copy link
Copy Markdown
Contributor Author

If you're happy with that, I'll swap out all the dictionaries.

Comment thread cif_ms.dic Outdated
rowlesmr added 2 commits July 9, 2026 18:44
to link to <parent>.structure_id instead of _structure.id directly
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Insufficient keys specified re _atom_site.label

2 participants