SINTEF / pyopia

Python Ocean Particle Image Analysis
https://pyopia.readthedocs.io
BSD 3-Clause "New" or "Revised" License
11 stars 5 forks source link

Add more info to error messages in log #310

Open nordam opened 2 months ago

nordam commented 2 months ago

My processing crashed with the following error:

2024-09-22 08:50:53 ERROR Thread-7 (process_file_list) [cli.process_file_list] Cannot load file containing pickled data when allow_pickle=False    

Probably there is something wrong with the image I'm trying to load, but it would be convenient to know the filename.

emlynjdavies commented 2 months ago

Please use log_level = 'DEBUG' then you will get a filename print out in the form: Chunk {c} starting to process {filename} before the pipeline.run(filename) is called