Skip to content

Grid not set fix

Roxana Bujack requested to merge bujack/MomentInvariants:gridNotSetFix into master

If the user does not set a grid, we don't have to check its validity. I changed the function to just return then.

Also I added a test if the spacing > 0. Sometimes 2D data has spacing[2]=0. In this case, findPoint does not always work correctly and it will complain that the grid does not match even if it does. So I check for that first.

Merge request reports