-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Array size doubles when specifying periodic axes #24
Comments
Possibly due to the tiling that is applied here: imageruler/imageruler/imageruler.py Lines 546 to 552 in d77c0af
but not(?) undone before returning the violations |
If you know a bugfix, please feel free to submit a PR. |
This feature is expected and it did not incur an error. To visualize lengthscale violation of a periodic structure, it does no harm to double this structure along the periodic direction(s).
It is not undone. |
It is not expected because the function's doc string states that the returned quantity "indicates violations in the input image:" imageruler/imageruler/imageruler.py Line 371 in d77c0af
A straightforward interpretation is that the mapping is one-to-one. But, if the output array has a different shape than the input array, it is unclear how a user should interpret the quantities in the output array. No documentation or mapping is provided for how violations may be mapped back to features in the input array. |
Yeah, I don't think it makes sense for the function to silently tile the image. I agree that tiling the image of a periodic structure can be very helpful for visualization, but the user can do this themselves (or there can be a function provided to do this — it's more flexible to provide additional features by composing multiple functions than by adding lots of options to a single function). |
Closed by #30 |
There is some unexpected behavior when
periodic_axes
is specified in thelength_violations
function. Specifically, the violations shape may not match the shape of the input array. Example:Prints the following:
The text was updated successfully, but these errors were encountered: