You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(filter): harden MTRSimFilter preflight + conventions per review
- Add zero-spacing guard (-13006) before dim() divisions in preflightImpl
- Update Physical Size help text to document the 2D (Z=0) mode
- Change physicalSize/physicalSpacing members from std::vector<float> to
std::vector<float32> to match what executeImpl reads from filterArgs
- Change outputs separator label to "Output Data Object(s)" (matches ReadMTRSimODFFilter)
- Remove premature #include "simplnx/DataStructure/DataArray.hpp" from stub MTRSim.cpp
- Add preflight test for Theta List rows with wrong column count (-13005)
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
params.insert(std::make_unique<VectorFloat32Parameter>(k_PhysicalSize_Key, "Physical Size (microns)", "Domain extent X, Y, Z in microns. Set Z = 0 to generate a single-layer (2D) microstructure.", std::vector<float32>{38.1f, 12.7f, 0.0f},
params.insert(std::make_unique<NumberParameter<uint64>>(k_SeedValue_Key, "Seed Value", "The seed fed into the random generator.", std::mt19937::default_seed));
97
97
params.insert(std::make_unique<DataObjectNameParameter>(k_SeedArrayName_Key, "Stored Seed Value Array Name", "Top-level array recording the seed used.", "MTRSim SeedValue"));
params.insertSeparator(Parameters::Separator{"Output Data Object(s)"});
100
100
params.insertLinkableParameter(
101
101
std::make_unique<BoolParameter>(k_GeneratePolarColoring_Key, "Generate Polar Coloring", "Create a 3-component UInt8 RGB array using the MATLAB polar color mapping.", false));
102
102
params.insert(std::make_unique<DataGroupCreationParameter>(k_OutputGeometry_Key, "Output Image Geometry", "Path of the new microstructure Image Geometry.", DataPath({"MTR Microstructure"})));
0 commit comments