Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor get_spectrum to no longer accept ROI as a string #2416

Merged
merged 1 commit into from
Nov 29, 2024

Conversation

ashleymeigh2
Copy link
Collaborator

@ashleymeigh2 ashleymeigh2 commented Nov 25, 2024

Issue

Closes #2297

Description

Refactored get_spectrum to only accept SensibleROI objects. Updated all dependent methods (do_add_roi, do_remove_roi, redraw_spectrum, etc.) to retrieve and pass SensibleROI instead of strings.

Testing

updated unit test

Acceptance Criteria

Ran unit tests for methods like do_add_roi, do_remove_roi, redraw_spectrum, and redraw_all_rois to confirm they function correctly with the updated get_spectrum.

Manually tested adding, removing, and updating ROIs in the UI to validate proper behavior.

@coveralls
Copy link

coveralls commented Nov 28, 2024

Coverage Status

coverage: 74.03% (-0.003%) from 74.033%
when pulling beb7bb6 on get_spectum_remove_string
into e2bbcf4 on main.

@samtygier-stfc samtygier-stfc marked this pull request as ready for review November 29, 2024 15:58
Copy link
Collaborator

@samtygier-stfc samtygier-stfc left a comment

Choose a reason for hiding this comment

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

Looks good. Tested locally.

@samtygier-stfc samtygier-stfc added this pull request to the merge queue Nov 29, 2024
Merged via the queue into main with commit d674578 Nov 29, 2024
8 checks passed
@ashleymeigh2 ashleymeigh2 deleted the get_spectum_remove_string branch November 29, 2024 16:12
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.

Remove _roi_ranges dict from SpectrumViewerWindowModel
4 participants