I have this small notebook snippet. This one was working about a year ago.
In[4]:= (* Set HistoryLength *)
$HistoryLength = 1;
(* Set working directory *)
SetDirectory["/Volumes/Data/Projects/SpeckleSH/Data"];
Directory[]
Out[6]= "/Volumes/Data/Projects/SpeckleSH/Data"
(* Read fits files. Scientific contains 999 pictures, \
waveform contains 2000 pictures *)
fps = Import["/Volumes/Data/Projects/SpeckleSH/Data/q880_0284.fits",
"RawData"];
fps[[1, 1]]
In[1]:= Directory[]
Out[1]= "/Volumes/Home/janos"
In[1]:= fps // Length
Out[1]= 0
So, Import[] is changing the directory specified by SetDirectory back to the user home directory, and cannot find the file, although it is specified with a full path. What is wrong here? Thanks ahead, János