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

Basic filter by dataset and spacing IDs #13

Merged
merged 16 commits into from
Nov 30, 2023

Conversation

andy-sweet
Copy link
Collaborator

@andy-sweet andy-sweet commented Nov 14, 2023

This adds some widgets to the portal connection/URI sub-widget that allows users to search for a specific datasets and tomograms using known IDs.

It also add tests that use some of this filtering behavior as a way to exercise the behavior and to better bound test time against the real GraphQL backend.

Closes #12

@andy-sweet andy-sweet changed the title Basic filter by spacing ID Basic filter by dataset and spacing IDs Nov 28, 2023
Copy link

codecov bot commented Nov 28, 2023

Codecov Report

Attention: 55 lines in your changes are missing coverage. Please review.

Comparison is base (2f0bff4) 87.34% compared to head (90c6b17) 82.01%.
Report is 1 commits behind head on main.

Files Patch % Lines
src/napari_cryoet_data_portal/_filter.py 38.35% 45 Missing ⚠️
src/napari_cryoet_data_portal/_uri_widget.py 84.61% 6 Missing ⚠️
src/napari_cryoet_data_portal/_open_widget.py 40.00% 3 Missing ⚠️
src/napari_cryoet_data_portal/_listing_widget.py 85.71% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main      #13      +/-   ##
==========================================
- Coverage   87.34%   82.01%   -5.33%     
==========================================
  Files          13       14       +1     
  Lines         553      656     +103     
==========================================
+ Hits          483      538      +55     
- Misses         70      118      +48     

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

@andy-sweet andy-sweet marked this pull request as ready for review November 28, 2023 22:25
self._filter_ids_type = QComboBox()
self._filter_ids_type.addItem("Dataset IDs", Dataset)
self._filter_ids_type.addItem("Run IDs", Run)
self._filter_ids_type.addItem("Spacing IDs", TomogramVoxelSpacing)
Copy link

Choose a reason for hiding this comment

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

Can we at least call this VxlSpacing IDs ? The texting generation will read that ok. Spacing is not saying much.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I originally had this as "Voxel Spacing IDs" and then compressed it to "Spacing IDs" for horizontal space saving, so I'm going to switch back to that.

Copy link

@anchi2c anchi2c left a comment

Choose a reason for hiding this comment

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

Just one suggesting of opposing label TomogramVoxelSpacing combo box as Spacing. Otherwise it should do well.

@andy-sweet andy-sweet merged commit 7165199 into chanzuckerberg:main Nov 30, 2023
9 of 11 checks passed
@andy-sweet andy-sweet deleted the feat-filter-by-tomo-id branch November 30, 2023 17:19
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.

Filter listing by tomogram voxel spacing ID
2 participants