Skip to content

test: real-file journeys for Particles and EDS per-region composition - #100

Merged
Paullo9 merged 1 commit into
mainfrom
claude/particles-real-journey
Nov 5, 2026
Merged

Paullo9 merged 1 commit into
mainfrom
claude/particles-real-journey

Conversation

@Paullo9

@Paullo9 Paullo9 commented Nov 5, 2026

Copy link
Copy Markdown
Contributor

Requested by Paul

Two opt-in UI journeys that drive macTEM's half of the precipitation analysis on Paul's own data. Both skip unless MACTEM_REAL_DATA=1, and they find the files through $MACEM_DATA (default ../data). No data is committed.

TEST_RUNNER_MACTEM_REAL_DATA=1 TEST_RUNNER_MACEM_DATA=<data folder> tools/run-tests.sh ui ParticlesRealFileJourney EDXRegionsRealFileJourney

ParticlesRealFileJourney covers seven Ceta images: the 1305, 1306 and 1309 TIFFs, the 1309 EMD, and the HRTEM 630 kx and 1.05 Mx TIFFs. On each it opens the file in the Image room, runs Show Objects with the default settings, and attaches the counts, size and density lines. It then opens the Object Table (only when there are 2000 counted objects or fewer) and runs Export CSV into --export-dir. Counts are attached, not asserted, because there is no truth for these files yet.

On the HRTEM images the default threshold picks out the lattice, giving 9,000 to 37,000 objects. One XCUITest snapshot of a table that size builds every row, and that keeps the main thread busy past XCUITest's 30 s limit (spindump: NSTableView viewAtColumn:row:makeIfNecessary:). The journey therefore skips the table step there. A person scrolling the table only builds the rows in view, so this is not shown to be a user-facing hang.

EDXRegionsRealFileJourney covers the 1339, 1840 and 1456 spectrum images. On each it quantifies the whole map, draws Region 1 (rectangle) and Region 2 (ellipse), quantifies each, checks the region table and exports Results CSV. XCUITest's clicks and drags do not reach the drawing layer's gestures, which EDXJourney already notes, so the regions are drawn through the room's keyboard route: click the colour mix, then press Return.

State on main today.

Not numeric. Test-only.

🤖 Generated with Claude Code

…-region composition

ParticlesRealFileJourney opens each Ceta TIFF/EMD in data/tem (17.5 kx to 1.05 Mx),
shows objects, attaches the counts, size and density lines, opens the object table
and exports the CSV into --export-dir. EDXRegionsRealFileJourney opens the 1339,
1840 and 1456 Velox spectrum images, quantifies the whole map, draws two regions
through the room's keyboard route, quantifies each and exports the results. Both
are opt-in (MACTEM_REAL_DATA=1) and find the data through $MACEM_DATA.

Done: the precipitation workflow's macTEM half is driven on the real files; next: re-run after #98 and MacEMUI#69 land.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@Paullo9 Paullo9 self-assigned this Nov 5, 2026
@Paullo9
Paullo9 enabled auto-merge (squash) November 5, 2026 11:17
@Paullo9
Paullo9 merged commit 9ee268d into main Nov 5, 2026
7 checks passed
@Paullo9
Paullo9 deleted the claude/particles-real-journey branch November 5, 2026 11:25
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