Skip to content

BUG: Build and pass tests against simplnx develop - #3

Merged
imikejackson merged 2 commits into
developfrom
topic/check-geometry-setter-results
Nov 26, 2026
Merged

imikejackson merged 2 commits into
developfrom
topic/check-geometry-setter-results

Conversation

@imikejackson

@imikejackson imikejackson commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Gets MTRSim building and passing its tests, and the simplnx tests that load the MTRSim plugin, against simplnx develop.

1. Check the ImageGeom setter results in the tests

simplnx #1997 made ImageGeom::setSpacing and ImageGeom::setOrigin return a [[nodiscard]] Result<>, and the build treats an ignored result as an error. The six calls in test/MTRSimTest.cpp and test/ComputeODFTest.cpp are now wrapped in REQUIRE(...valid()).

2. ComputeODFFilter key suffix

The simplnx test FilterValidation::Filter Parameter Keys requires DataGroupCreationParameter keys to end in _path. output_presentation_geometry becomes output_presentation_geometry_path, and the parameters version goes from 5 to 6.

3. Example pipeline

The simplnx test Prebuilt Pipelines: Parameter Keys Are Current failed on pipelines/avtr12-ODF-Pole-Figure.d3dpipeline: 33 parameters were missing from ReadCtfDataFilter, RotateSampleRefFrameFilter, WritePoleFigureFilter, ComputeODFFilter, CropImageGeometryFilter and WriteImageFilter. They are added with their default values (material_names_path points at the pipeline's MaterialName array), and each node's parameters_version is updated. Existing values are unchanged.

4. scripts/generate_nx_pipelines.py

Writes WriteDREAM3DFilter parameters version 2 (the current one), and no longer fails when --out-dir is outside the repository. The committed MTRSim_*.d3dpipeline files have more steps than the generator writes; they were not regenerated.

PR #2 touches the same test lines as part 1 and will need a small rebase.

Test plan

  • Linux (gcc 13, Release): simplnx develop (e378a21e0) with MTRSim as an extra plugin builds with 0 errors
  • ctest -R "MTRSim|Prebuilt Pipelines|FilterValidation": 69/69 pass (serial)
  • clang-format 19.1.1 passes on the changed C++ files
  • nxrunner -p on the avtr12 pipeline loads it with no key errors, then stops at its first filter because the example's input .ctf file is not on the test machine

🤖 Generated with Claude Code

https://claude.ai/code/session_0142wsFLC76q7MKNw8Tk28RQ

imikejackson and others added 2 commits November 26, 2026 12:44
simplnx #1997 made ImageGeom::setSpacing and setOrigin return [[nodiscard]] Result<>.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0142wsFLC76q7MKNw8Tk28RQ
…line

- Rename output_presentation_geometry to output_presentation_geometry_path, as
  DataGroupCreationParameter keys must end in _path, and bump the parameters version to 6.
- Add the parameters that simplnx and ComputeODFFilter gained since
  avtr12-ODF-Pole-Figure.d3dpipeline was saved, with their default values, and update
  each node's parameters_version.
- generate_nx_pipelines.py: write WriteDREAM3DFilter parameters version 2 and accept an
  output directory outside the repository.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0142wsFLC76q7MKNw8Tk28RQ
@imikejackson imikejackson changed the title COMP: Check the ImageGeom setter results in the tests BUG: Build and pass tests against simplnx develop Nov 26, 2026
@imikejackson
imikejackson merged commit a2decf7 into develop Nov 26, 2026
4 of 6 checks passed
@imikejackson
imikejackson deleted the topic/check-geometry-setter-results branch November 26, 2026 17:56
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