Skip to content

Fix for Issue #211: Workflow get_datapoint_id ignores nonexistent label for single datapoint steps. - #357

Open
AileenCleary wants to merge 6 commits into
mainfrom
aileen/issue211
Open

Fix for Issue #211: Workflow get_datapoint_id ignores nonexistent label for single datapoint steps.#357
AileenCleary wants to merge 6 commits into
mainfrom
aileen/issue211

Conversation

@AileenCleary

Copy link
Copy Markdown
Collaborator

PR Info

Fix for Issue #211

Previously, if a step had only one datapoint, there was no check against nonexistent labels. Moved logic around to check label existence for single and multiple datapoint steps at the same time, and throw a ValueError if nonexistent.

Added to unit tests to ensure an error is thrown for nonexistent labels on single datapoint steps.

Developer Checklists

I have:

  • Run Pre-commit and Unit Tests, and ensured that they pass
  • Created or updated documentation relevant to your change
  • Created or updated unit tests relevant to your change

@github-actions

github-actions Bot commented Aug 11, 2026

Copy link
Copy Markdown

Coverage report

Click to see where and how coverage changed

FileStatementsMissingCoverageCoverage
(new stmts)
Lines missing
  src/madsci_common/madsci/common/types
  workflow_types.py
Project Total  

This report was generated by python-coverage-comment-action

tginsbu1
tginsbu1 previously approved these changes Aug 13, 2026

@tginsbu1 tginsbu1 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.

Seems like a reasonable way to handle it, I approve.

@tginsbu1 tginsbu1 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.

Seems to work now

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.

Bug: workflow get datapoint by id ignores label if it can’t find it

2 participants