pylibtiff icon indicating copy to clipboard operation
pylibtiff copied to clipboard

Use warnings.warn in tiff_file.py: get_values instead of stderr

Open moi90 opened this issue 9 years ago • 3 comments

I may have non-standard tiff files. Loading them tiff.TIFFfile writes an error to stderr, but the result is usable nevertheless.

get_values: incomplete info for type=7 ['7']: dtype=None, bytes=1

I expect pylibtiff to use warnings.warn instead, so that the user may handle such cases.

moi90 avatar Feb 13 '16 11:02 moi90

I created a pull request: #43

moi90 avatar Feb 13 '16 14:02 moi90

Are contributions like this unwanted?

moi90 avatar May 02 '16 17:05 moi90

No. Such contributions, especially pull requests, are highly appreciated. There was some time period where my github messaging was disabled (also in other projects) and so I missed many messages. Thanks again for your contribution!

It seems that pull request #43 got a conflict with previous Python 3 support merges..

pearu avatar May 02 '16 17:05 pearu