Skip to content

Dropdown menu + unit tests added#35

Merged
Matt-Carre merged 15 commits intomainfrom
DropDown
Mar 12, 2026
Merged

Dropdown menu + unit tests added#35
Matt-Carre merged 15 commits intomainfrom
DropDown

Conversation

@Matt-Carre
Copy link
Collaborator

Working on #33
Yet to pass the output onwards but can read the selected output as a string in 'read_aperture_dropdown()' method (tested in unit tests)

dependabot bot and others added 4 commits December 15, 2025 16:30
Bumps the actions group with 2 updates: [actions/upload-artifact](https://github.com/actions/upload-artifact) and [actions/download-artifact](https://github.com/actions/download-artifact).


Updates `actions/upload-artifact` from 5 to 6
- [Release notes](https://github.com/actions/upload-artifact/releases)
- [Commits](actions/upload-artifact@v5...v6)

Updates `actions/download-artifact` from 6 to 7
- [Release notes](https://github.com/actions/download-artifact/releases)
- [Commits](actions/download-artifact@v6...v7)

---
updated-dependencies:
- dependency-name: actions/upload-artifact
  dependency-version: '6'
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: actions
- dependency-name: actions/download-artifact
  dependency-version: '7'
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: actions
...

Signed-off-by: dependabot[bot] <support@github.com>
@Matt-Carre Matt-Carre self-assigned this Mar 10, 2026
@codecov
Copy link

codecov bot commented Mar 10, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 96.45%. Comparing base (99e87e9) to head (416abda).
⚠️ Report is 7 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main      #35      +/-   ##
==========================================
+ Coverage   96.28%   96.45%   +0.16%     
==========================================
  Files          12       13       +1     
  Lines         485      508      +23     
==========================================
+ Hits          467      490      +23     
  Misses         18       18              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copy link
Collaborator

@noemifrisina noemifrisina left a comment

Choose a reason for hiding this comment

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

Works nicely, thanks. A couple of things...

Must: we need an attribute in the UI where the value from this combo box is saved so that we'll be able to pass it to the parameters when needed

Copy link
Collaborator

@noemifrisina noemifrisina left a comment

Choose a reason for hiding this comment

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

Thanks, just a couple small things, sorry.



class ApertureOptions(StrEnum):
um_20 = "20um"
Copy link
Collaborator

Choose a reason for hiding this comment

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

Should: enum names are usually all caps

@pytest.mark.parametrize(
"options,index", [("20um", 0), ("40um", 1), ("100um", 2), ("3000um", 3)]
)
def test_dropdown_update(mock_eh2_gui, options, index):
Copy link
Collaborator

Choose a reason for hiding this comment

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

Nit: options is not super obvious as a name, "aperture" or "choice" would work better

Copy link
Collaborator

@noemifrisina noemifrisina left a comment

Choose a reason for hiding this comment

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

Great, thanks!

@Matt-Carre Matt-Carre merged commit 1c09f04 into main Mar 12, 2026
10 checks passed
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