cortex-lab / Suite2P

Tools for processing 2P recordings
Other
122 stars 66 forks source link

Issue in reg2P #117

Closed MarioDipoppa closed 6 years ago

MarioDipoppa commented 6 years ago

I've got the following error when running reg2P

Error using tifflib Unable to read the next directory. Error in Tiff/nextDirectory (line 912) tifflib('readDirectory',obj.FileID); Error in loadFramesBuff (line 96) nextDirectory(tiff); Error in reg2P (line 171) data = loadFramesBuff(fs{k}(j).name, reg_channel, nFr, nchannels_expt, ops.temp_tiff); 912 tifflib('readDirectory',obj.FileID);

It seems related to the fact that tiff: TIFF File: 'C:\DATA\temp.tif' Mode: 'r' has no field FileID?

MarioDipoppa commented 6 years ago

The issue was caused by a corrupted tiff file.