Skip to content

Expand support for RUN data#735

Open
philsmt wants to merge 3 commits into
masterfrom
feat/flexible-run-data
Open

Expand support for RUN data#735
philsmt wants to merge 3 commits into
masterfrom
feat/flexible-run-data

Conversation

@philsmt

@philsmt philsmt commented Apr 20, 2026

Copy link
Copy Markdown
Contributor

For data reduction purposes, we would like to be able to store trainless metadata accessible via EXtra-data. After some experimentation, the most elegant solution appears to be allowing REDUCTION sources (any other type of source) to have RUN values. Assuming there are no source name collisions between the sections, there is indeed no hard requirement in either EXtra-data or the EXDF data format in general on restricting RUN values to CONTROL.

This PR therefore relaxes the restriction to CONTROL sources to instead check for the existance of RUN data for the given source. In this respect the API remains backwards-compatible, as the same ValueError is raised and for legacy code, there is no difference between asking for non-CONTROL data or any source without RUN data.

In addition, it adds some additional convenience methods when working with RUN data in the form of

  • SourceData.run_keys(inc_timestamps=True)
  • KeyData.run_value(allow_multi_run=False)

@philsmt philsmt requested a review from takluyver April 20, 2026 07:43
Comment thread extra_data/keydata.py Dismissed
@philsmt philsmt force-pushed the feat/flexible-run-data branch from aeece25 to 3246e9a Compare April 20, 2026 07:45
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.

2 participants