Skip to content

Further measurement export updates#2087

Merged
petebankhead merged 9 commits intoqupath:mainfrom
petebankhead:more-export
Feb 13, 2026
Merged

Further measurement export updates#2087
petebankhead merged 9 commits intoqupath:mainfrom
petebankhead:more-export

Conversation

@petebankhead
Copy link
Member

@petebankhead petebankhead commented Feb 13, 2026

Updates to the measurement exporter and its UI, including a new checkbox to export project metadata.

This addresses #2057 (albeit without the flexibility to choose specific metadata values - it's all or nothing). @zindy

Combined with other PRs, it also

  • Supports gzipped output (add .gz to the end of the path)
  • Attempts to handle escaping whenever the separator (or a double quote) appears within a cell
    • For a tab-delimited file, a tab is replaced by \t
    • For another file (comma or semicolon delimited), if a cell contains the delimiter or a double-quote it will be surrounded by double quotes, and any existing ones will be escaped as ""
  • Makes many selections persistent preferences, so they are not immediately reset
    • The output file path is a special case: this will reset when a project changes if its value is currently within the project directory.
      • The aim is to avoid resetting the path if a user is exporting to any arbitrary directory, but also not to default to a previous directory for a different project than the one currently open.
measurement-exporter

Matches getDoubleValues
- Add option to export project entry metadata values
- Try to handle escaping the use of the delimiter in measurement export
Show image name and some progress during export for a single image (not just at the end of each image).
BufferedWriter has a bit less overhead, which seems to matter more when using a GZipOutputStream
Return null more often when requesting a missing measurement from a table, instead of defaulting to NaN.
It seems to also be necessary to add quotes around cells that contain escaped quotes (based upon how QuickLook and Excel handled things strangely when I didn't do this).
@petebankhead petebankhead added this to the v0.7.0 milestone Feb 13, 2026
Copy link
Contributor

@alanocallaghan alanocallaghan 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 and passes extremely quick testing

@petebankhead petebankhead merged commit 07c8135 into qupath:main Feb 13, 2026
3 checks passed
@petebankhead petebankhead deleted the more-export branch February 13, 2026 16:14
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