Possibility to export user defined metadata entries when exporting measurements through the dialog#2057
Closed
zindy wants to merge 1 commit intoqupath:mainfrom
Closed
Possibility to export user defined metadata entries when exporting measurements through the dialog#2057zindy wants to merge 1 commit intoqupath:mainfrom
zindy wants to merge 1 commit intoqupath:mainfrom
Conversation
This was referenced Feb 12, 2026
Member
|
Thanks for this - I've tried to address the main need in #2087 so I'll close the PR, but do let me know if you find problems with the alternative way of doing things. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Hello,
The request for this feature was made on https://forum.image.sc/t/qupath-metadata/80733
This implementation enables the "Populate" button in the "Export Measurements" dialog to add user defined metadata entries to the "Columns to include (optional)" set and lets the user choose exactly which relevant metadata entries they want to add.
To avoid potential naming collisions and distinguish metadata entries from other QuPath columns, the suffix " (metadata)" is added to the displayed names and also columns in the exported file header.
In
MeasurementExporter.addRows(), presence of " (metadata)" in a column name is used for triggering the addition of a metadata value instead of a measurement.I haven't looked at implementing this in
QPEx.saveMeasurements()yet and my implementation is not particularly clever...Basically, just a first draft to (maybe) get the ball rolling.
Kind regards,
Egor