Skip to content

Fix gray dataset preview thumbnails (headless PNG export) - #43

Merged
olemarius90 merged 2 commits into
masterfrom
cursor/fix-website-deploy-datasets-c47b
Jul 9, 2026
Merged

olemarius90 merged 2 commits into
masterfrom
cursor/fix-website-deploy-datasets-c47b

Conversation

@olemarius90

Copy link
Copy Markdown
Owner

Problem

After fixing TheGB sound speed, many dataset thumbnails on the website turned gray. The export run only succeeded for 33/51 datasets; failures wrote gray stub PNGs.

Root causes:

  1. b_data.plot adds uicontrol sliders — headless print/exportgraphics fails with "Printing of uicontrols is not supported"
  2. Beamformed-only UFF files (beamformed_simulated_data.uff, etc.) have no /b_data group — only /b_data_das, etc.
  3. Dataset export still defaulted to ustb.no in the first pass (fixed in prior commit on this branch)

Fix

  • Delete uicontrols in export_png_like_b_data_plot.m before capturing the figure
  • Add read_beamformed_only_for_preview with safe path fallbacks
  • Default downloads to Zenodo (tools.zenodo_dataset_files_base())
  • Regenerated 51/51 previews; uploaded new datasets-html.tar.gz (9.8 MB) to examples-v1 release on olemarius90/USTB

After merge

Re-run Deploy Website to GitHub Pages on unioslo/USTB (needs deploy-pages@v5 from master if not already merged upstream).

Open in Web Open in Cursor 

cursoragent and others added 2 commits July 9, 2026 15:25
- export_dataset_previews_to_website uses tools.zenodo_dataset_files_base()
- UFF_Verasonics_all: use sound speed from UFF file (remove 1460 override)

Co-authored-by: Ole Marius Hoel Rindal <olemarius90@users.noreply.github.com>
- export_png_like_b_data_plot deletes uicontrol sliders added by b_data.plot
  (fixes headless 'Printing of uicontrols is not supported' failures)
- read_beamformed_only_for_preview tries /b_data_das and related groups
  without erroring on missing /b_data

Co-authored-by: Ole Marius Hoel Rindal <olemarius90@users.noreply.github.com>
@olemarius90
olemarius90 merged commit c61c99f into master Jul 9, 2026
4 checks passed
@olemarius90
olemarius90 deleted the cursor/fix-website-deploy-datasets-c47b branch July 9, 2026 21:06
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