Skip to content

Change to enumeration_defaults for default indexing.#8

Open
jamesrhester wants to merge 1 commit intoCOMCIFS:mainfrom
jamesrhester:new_index_enums
Open

Change to enumeration_defaults for default indexing.#8
jamesrhester wants to merge 1 commit intoCOMCIFS:mainfrom
jamesrhester:new_index_enums

Conversation

@jamesrhester
Copy link
Copy Markdown
Collaborator

In DDL 4.2, enumeration_default was deprecated in favour of enumeration_defaults, which allows multiple data names to be used to index into default value lists. The first use case for this is neutron scattering lengths, which depend on atomic number and isotope. Neutron scattering length values are not corrected in this PR.

A companion change to the cif_core dictionary to use enumeration.def_index_ids is also necessary.

This PR fixes #6 .

In DDL 4.2, enumeration_default was deprecated in favour of
enumeration_defaults, which allows multiple data names to be
used to index into default value lists. The first use case for
this is neutron scattering lengths, which depend on atomic
number and isotope, but these values are not corrected in this
PR.

A companion change to the cif_core dictionary to use
enumeration.def_index_ids is also necessary.
@vaitkus
Copy link
Copy Markdown
Collaborator

vaitkus commented Apr 9, 2026

Similarly to COMCIFS/Attribute_Templates#6, before merging this PR I would like to preemptively test the dictionary checking software used in GitHub actions. Hopefully, I will manage to to that over the weekend.

Also, it would be nice to first merge PR #5 as it introduces some automated consistency checks (syntax mostly).
PR #4 should also be merged, but it does not block this PR.

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.

Use ENUMERATION_DEFAULTS instead of ENUMERATION_DEFAULT?

2 participants