Skip to content

fix: the EDS results header and exports name the kept region - #69

Merged
Paullo9 merged 1 commit into
mainfrom
claude/eds-region-name
Nov 5, 2026
Merged

Paullo9 merged 1 commit into
mainfrom
claude/eds-region-name

Conversation

@Paullo9

@Paullo9 Paullo9 commented Nov 5, 2026

Copy link
Copy Markdown
Contributor

Requested by Paul

Fixes mac4DSTEM/macTEM#99.

What. In the EDS room, the results header (Results · …), the export file stem, the results and spectrum CSVs' region line, the .msa title and Auto ID's region now use the kept region's own name: Region 1, Region 2, or whatever it was renamed to. Before, every shape read Region. A shape that is selected but not kept still reads Region.

Why. Driving per-region composition on Paul's real Velox spectrum images (macTEM's new EDXRegionsRealFileJourney, 1339 file) showed Results · Region for both Region 1 and Region 2. Results CSV wrote …_Region quantification.csv for each, so the second export overwrote the first. The region table and the spectrum legend already said Region 1 / Region 2.

Tests. EDXRegionsTests.testTheHeaderAndTheExportsNameTheKeptRegion (new) fails on main ("Region" != "Region 2", stem planted_Region) and passes here. swift test -c release --parallel is green.

Screen. This changes one line of text in the results header. The before screenshot is from Paul's private data, so it stays local, not in this public PR. The after state is unverified on screen until macTEM takes this version.

Not numeric. No public API change.

🤖 Generated with Claude Code

The results header, the export file stem, the results and spectrum CSVs, the
.msa title and Auto ID's region now read the kept region's own name (Region 1,
Region 2, or what it was renamed to) instead of "Region" for every shape, so
two regions' exports no longer overwrite each other. Reported in
mac4DSTEM/macTEM#99.

Done: the kept region's name reaches the header and the exports; next: macTEM takes the next MacEMUI version.

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:03
@Paullo9
Paullo9 merged commit 1c7b9d0 into main Nov 5, 2026
6 checks passed
@Paullo9
Paullo9 deleted the claude/eds-region-name branch November 5, 2026 11:08
@macem-release macem-release Bot mentioned this pull request Nov 5, 2026
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.

polish: EDS results header and exports name every region "Region", so region exports overwrite each other

1 participant