You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Pytiff gives an OSError: file not found when opening a new image with pytiff.Tiff('filename.tif') in case that the filename path is a symlink. I could overcome this problem by doing from os import readlink; pytiff.Tiff(readlink('filename.tif')); however this is not the expected behaviour.
The text was updated successfully, but these errors were encountered:
In fact the os.readlink command mentioned above will fail if the filename is not a link. The safer solution is os.path.realpath. Using this by default inside pytiff might be a safe solution, but I am not sure wether it is platform independent (tested only on the Jülich JUDAC linux system).
Pytiff gives an
OSError: file not found
when opening a new image withpytiff.Tiff('filename.tif')
in case that the filename path is a symlink. I could overcome this problem by doingfrom os import readlink; pytiff.Tiff(readlink('filename.tif'))
; however this is not the expected behaviour.The text was updated successfully, but these errors were encountered: