Skip to content

BUG: Restrict file extensions of RegularizeZSpacingFilter and ReadOnScaleTableFileFilter - #1897

Open
imikejackson wants to merge 1 commit into
BlueQuartzSoftware:developfrom
imikejackson:topic/file_drop_extensions
Open

imikejackson wants to merge 1 commit into
BlueQuartzSoftware:developfrom
imikejackson:topic/file_drop_extensions

Conversation

@imikejackson

Copy link
Copy Markdown
Contributor

Summary

When a file input parameter accepts all extensions, DREAM3D-NX offers its filter for every file or folder that is dropped on the pipeline area. Regularize Z Spacing and Read OnScale Table File set this option, so they showed for every drop. This change makes the two filters accept only the extensions they list.

  • RegularizeZSpacingFilter accepts only .txt, .dat, and .csv files for the Z positions file.
  • ReadOnScaleTableFileFilter accepts only .flxtbl files.
  • New tests check that .dat and .csv Z positions files run, and that an unsupported extension fails preflight with error -3003. The OnScale test case for a .table file now expects error -3003.
  • The filter documentation and the Regularize Z Spacing V&V notes describe the accepted extensions.

Behavior change: a converted legacy pipeline that uses a Z positions file with a different extension now fails preflight. An unsupported extension gives error -3003, and a file with no extension gives error -3002. Rename the file to a supported extension to fix this.

The DREAM3D-NX change that adds folder drops is BlueQuartzSoftware/DREAM3DNX#1225. That pull request does not depend on this one.

Test Plan

  • SimplnxCoreUnitTest builds on macOS (NX-Com-Qt69-Vtk96-Rel).
  • ctest -R "SimplnxCore::RegularizeZSpacing|SimplnxCore::ReadOnScaleTableFile" passes (22/22).

Related Issue

  • This PR has no related issue

@imikejackson imikejackson self-assigned this Oct 29, 2026
@imikejackson imikejackson changed the title BUG: Restrict file extensions of two file reader filters BUG: Restrict file extensions of RegularizeZSpacingFilter and ReadOnScaleTableFileFilter Oct 30, 2026
@imikejackson
imikejackson enabled auto-merge (squash) October 30, 2026 12:58
DREAM3D-NX offers a filter for every dropped file or folder when the
input file parameter of the filter accepts all extensions. These two
filters set that option, so they showed for each drop.

* RegularizeZSpacingFilter accepts only .txt, .dat and .csv files.
* ReadOnScaleTableFileFilter accepts only .flxtbl files.
* Add tests for the supported extensions and for the -3003 preflight
  error that an unsupported extension causes.
* Update the filter documentation and the Regularize Z Spacing V&V
  notes. Converted legacy pipelines that use a different extension
  now fail preflight and must use a renamed file.

Signed-off-by: Michael Jackson <mike.jackson@bluequartz.net>
@imikejackson
imikejackson force-pushed the topic/file_drop_extensions branch from 00ba354 to 76d75ea Compare October 30, 2026 12:58
@imikejackson
imikejackson marked this pull request as draft October 30, 2026 13:00
auto-merge was automatically disabled October 30, 2026 13:00

Pull request was converted to draft

@imikejackson
imikejackson marked this pull request as ready for review October 30, 2026 13:06
@imikejackson imikejackson added the bug Something isn't working label Oct 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant