-
Notifications
You must be signed in to change notification settings - Fork 34
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
Bruker get_channel floating point parsing error #38
Comments
Thank you for your attention B is correct. I have been told that we have successfully used pySPM on these images before which is strange... It seems that it shouldn't have ever worked if the code assumed a pair of integers. |
What is the real size of your image? 300μm horizontally? but for the vertical axis Gwyddion tells me about 210μm while the aspect ratio of 0.51216 of 300μm is 153μm which is strange... |
Could you try this branch: https://github.com/scholi/pySPM/tree/Bruker_non_square |
Ok good to hear that it works :). So I will merge this branch to master. |
Describe the bug
Hi there 😄
We have been using pySPM for a while now to open Bruker .spm files, and it has been going seamlessly. Today we have noticed that on files that previously definitely loaded properly, it now throws this error. The files are non-square in their aspect ratio.
The issue appears to be the handling of floating point values in the
get_channel()
method of theBruker
class.What is weird is that this error happens on both version
0.2.23
and0.5.1
and manually setting the versions to previous versions does not fix it.To Reproduce
file used:
not_working_file.spm.zip
I had to compress it since GitHub won't allow
.spm
uploads. I hope this doesn't corrupt it.Expected behavior
Loading the height channel data as usual.
Screenshots
Information:
Please run the following and attach the result to your issue
The text was updated successfully, but these errors were encountered: