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
import read_roi
from pathlib import Path
file_path = Path('C:\workspace\datasets\file_name.roi')
read_roi.read_roi_file( file_path ) # this is recognized as 'Nonetype' object
cause: it seems that 'read_roi_file( )' cannot read 'Path' type, and It works with string type.
Solution
Wrap the path with 'str( )'
code example
read_roi.read_roi_file( str(file_path) )
The text was updated successfully, but these errors were encountered:
Error
Solution
The text was updated successfully, but these errors were encountered: