Skip to content

Functionality for mapping IMAS sources to source identifier indices. #134

Open

Description

@Nush395

When writing IMAS outputs we would like to adhere to the IMAS scheme and populate both the source name and its identifier index. Is it possible to add the mapping from IMAS source names to identifiers somewhere in the IMAS python library such that writers could access it. Atm I can only see it listed on the docs.

Activity

  1. maarten-ic commented on Jun 19, 2026

    @maarten-ic
    Collaborator

    Hi @Nush395,

    Is this what you are looking for? https://imas-python.readthedocs.io/en/stable/identifiers.html

    For example:

    >>> import imas
    >>> imas.identifiers.core_source_identifier.ec
    <core_source_identifier.ec: 3>

    Note that you can assign the source name directly to an identifier structure, see this example in the documentation

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions