Most likely the problem is that your path contains special characters (\A
and \S
, note that \
is an escape character). You can use any of these syntaxes instead:
-
r‘C:\Anand Work\Sft.nrrd’
=>r
prefix specifies raw string,\
is not interpreted as escape character in these strings -
‘C:\\Anand Work\\Sft.nrrd’
=> double backslash encodes backslash -
‘C:/Anand Work/Sft.nrrd’
=> forward slashes can be use instead of backslashes