Skip to content

Minor bug fixes - #158

Open
rhysgt wants to merge 4 commits into
masterfrom
rhys_dev
Open

rhysgt wants to merge 4 commits into
masterfrom
rhys_dev

Conversation

@rhysgt

@rhysgt rhysgt commented Oct 16, 2026 •

Copy link
Copy Markdown
Contributor

[fix: Relax pattern image size check in HRDIC Map]
The pattern image size check required an exact match with the DIC map shape times binning. DIC packages round the number of subwindows differently, so the image can legitimately differ by a pixel or so. The check now accepts a range of sizes depending on the map format (DaVis rounds up; PyVale and OpenPIV round down). The error message reports the expected range.

[fix: Handle non-integer x, y in pyvale]
PyVale can produce files where x and y are not integers. This used to be accepted by numpy <2.1.3, but load_text is more strict since 2.5.2. This commit changes the data format of x and y to be double.
Fixes issue #157

PyVale can produce files where x and y are not integers. This used to be accepted by numpy <2.1.3, but load_text is more strict since 2.5.2. This commit changes the data format of x and y to be double.
Fixes issue #157
New versions of PyVale use cost_zncc as column name
The pattern image size check required an exact match with the DIC map shape times binning. DIC packages round the number of subwindows differently, so the image can legitimately differ by a pixel or so.

The check now accepts a range of sizes depending on the map format (DaVis rounds up; PyVale and OpenPIV round down). The error message reports the expected range.
@rhysgt
rhysgt marked this pull request as ready for review October 21, 2026 09:37
@rhysgt
rhysgt requested a review from mikesmic as a code owner October 21, 2026 09:37

@mikesmic mikesmic left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't see why the name in the data_format needs to be changes to match the header of the file? The data is extracted later and the formatted is not passed on.

No need to change the data_format. It always maps the 7th column to 'cost', regardless of header.
@rhysgt

rhysgt commented Oct 21, 2026

Copy link
Copy Markdown
Contributor Author

Yup you're right. I though it was using file header for naming but it uses data_format to map them blindly to the given names. Reverted that change.

This branch has not been deployed

No deployments
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.

2 participants