Skip to content
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

Error in reading tiff file #210

Closed
alexanatoly opened this issue Nov 9, 2023 · 8 comments
Closed

Error in reading tiff file #210

alexanatoly opened this issue Nov 9, 2023 · 8 comments

Comments

@alexanatoly
Copy link

alexanatoly commented Nov 9, 2023

Hi, I am trying to read an image file which is in a .tiff file format to test the example file (example_modal_decomposition_data.py). However, I am always getting an error

modeCoeffs, waist = hermite_gauss_decomposition(

File "/Users/labpc/opt/anaconda3/lib/python3.9/site-packages/lasy/utils/mode_decomposition.py", line 83, in hermite_gauss_decomposition
w0 = estimate_best_HG_waist(x, y, field)

File "/Users/labpc/opt/anaconda3/lib/python3.9/site-packages/lasy/utils/mode_decomposition.py", line 123, in estimate_best_HG_waist
assert dx == dy
AssertionError

Any suggestions how to fix this error .....

@RemiLehe
Copy link
Member

RemiLehe commented Nov 9, 2023

Thanks for reporting this issue.

Would you be able to share your full Python script, so that we can reproduce the error?

Thanks,

@alexanatoly
Copy link
Author

alexanatoly commented Nov 9, 2023

Hi @RemiLehe , find attached the python script. For uploading, I included the extension '.txt' because '.py' files cannot be uploaded. Please remove '.txt' extension when using the file.

As you can see, I just replace the image file name in the 'example_modal_decomposition_data.py' example file. The tiff image file is 16 MB in size. Files with size < 10 MB can be uploaded. If you need that also, I can send you by email.

example_modal_decomposition_data_TIFF.py.txt

@alexanatoly
Copy link
Author

Hi @RemiLehe, I used tiff file image because it is the most common file format for saving images in experiments. If the question is not in the scope of lasy, we can close this issue, however, if the error is within the scope of lasy and should be tested, I will keep it open.

@RemiLehe
Copy link
Member

@alexanatoly Sorry for the late reply! I think that your question is in the scope of lasy.
In order for me to debug this further, could you please send me the image? You can find my email address on the LBNL phonebook: http://phonebook.lbl.gov/

@alexanatoly
Copy link
Author

@RemiLehe thank you. The tiff image file was sent to your email address.

@alexanatoly
Copy link
Author

Hi @RemiLehe, did you get time to see the tiff file ?
thanks.

@MaxThevenet
Copy link
Contributor

Should be fixed by #297.

@alexanatoly
Copy link
Author

Hi @MaxThevenet,

Thanks for fixing this issue. I will give it a try.

Alex

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

No branches or pull requests

3 participants