Skip to content

Provide way to choose project entries by metadata#1143

Merged
petebankhead merged 1 commit intoqupath:mainfrom
petebankhead:project-filtering
Nov 17, 2022
Merged

Provide way to choose project entries by metadata#1143
petebankhead merged 1 commit intoqupath:mainfrom
petebankhead:project-filtering

Conversation

@petebankhead
Copy link
Member

'Run for project' can use metadata when selecting images

  • If the filter text doesn't contain |, just filter by image name (the previous behavior)
  • If the filter text contains |, additionally split on | and check that all tokens are either contained in the image name, or in a metadata text in the format key=value
  • For example, a search .tif|source=imagej would look for images that contain both .tif and source=imagej either in their name or metadata

'Run for project' can use metadata when selecting images

* If the filter text doesn't contain `|`, just filter by image name (the previous behavior)
* If the filter text contains `|`, additionally split on `|` and check that all tokens are either contained in the image name, or in a metadata text in the format `key=value`
* For example, a search `.tif|source=imagej` would look for images that contain both `.tif` and `source=imagej` either in their name or metadata
@petebankhead petebankhead added this to the v0.4.0 milestone Nov 17, 2022
@petebankhead petebankhead merged commit 52d5b53 into qupath:main Nov 17, 2022
@petebankhead petebankhead deleted the project-filtering branch November 17, 2022 11:21
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.

1 participant