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

Investigate ValueError warning coming from tiffile #19

Open
lauraporta opened this issue Jul 25, 2024 · 1 comment
Open

Investigate ValueError warning coming from tiffile #19

lauraporta opened this issue Jul 25, 2024 · 1 comment

Comments

@lauraporta
Copy link
Member

Is your feature request related to a problem? Please describe.
When running the pipeline, tiffile.imread raises a warning regarding a reshaping tentative failed.

Describe the solution you'd like
Understand if it comes from a misuse of the package and in that way remove the warning

Describe alternatives you've considered
Leaving it as it is - tiffile seams to handle whatever problem there is and returns me the correct file

Additional context
Logs:

2024-07-25 16:28:26 PM INFO     2024-07-25 16:28:26 PM - INFO - MainProcess       fancylog.py:326
                                fancylog.py:326 - Starting logging                               
                       INFO     2024-07-25 16:28:26 PM - INFO - MainProcess       fancylog.py:327
                                fancylog.py:327 - Not logging multiple processes                 
                       INFO     2024-07-25 16:28:26 PM - INFO -     full_rotation_pipeline.py:122
                                MainProcess                                                      
                                full_rotation_pipeline.py:122 -                                  
                                Loading data...                                                  
2024-07-25 16:28:29 PM WARNING  2024-07-25 16:28:29 PM - WARNING - MainProcess   tifffile.py:4539
                                tifffile.py:4539 - <tifffile.TiffFile                            
                                'rotation_00001.tif'> <asarray> failed to                        
                                reshape (8258, 256, 256) to (8500, 256, 256),                    
                                raised ValueError('cannot reshape array of size                  
                                541196288 into shape (8500,256,256)') 
@lauraporta
Copy link
Member Author

It kills my process on the cluster 😭

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

1 participant