flatironinstitute / CaImAn

Computational toolbox for large scale Calcium Imaging Analysis, including movie handling, motion correction, source extraction, spike deconvolution and result visualization.
https://caiman.readthedocs.io
GNU General Public License v2.0
639 stars 370 forks source link

Errors in Motion Correction when running .avi files in pipeline #316

Closed jtalley24 closed 6 years ago

jtalley24 commented 6 years ago

~\Anaconda3\envs\caiman\lib\site-packages\caiman\motion_correction.py in motion_correct_oneP_rigid(filename, gSig_filt, max_shifts, dview, splits_rig, save_movie) 473 ''' 474 min_mov = np.array([cm.motion_correction.high_pass_filterspace( --> 475 m, gSigfilt) for m in cm.load(filename[0], subindices=range(400))]).min() 476 new_templ = None 477

~\Anaconda3\envs\caiman\lib\site-packages\caiman\base\movies.py in load(file_name, fr, start_time, meta_data, subindices, shape, var_name_hdf5, in_memory, is_behavior, bottom, top, left, right, channel, outtype) 1234 elif extension == '.avi': # load avi file 1235 if subindices is not None: -> 1236 raise Exception('Subindices not implemented') 1237 cap = cv2.VideoCapture(file_name) 1238 try:

Exception: Subindices not implemented

epnev commented 6 years ago

@jtalley24 Support for .avi files was implemented as a response to issue https://github.com/flatironinstitute/CaImAn/issues/291 You should update to the latest version (see instructions on how to do this)

jtalley24 commented 6 years ago

Could you provide a link to the relevant instructions?

epnev commented 6 years ago

It appears when you click to open a new issue but you deleted it. check the wiki

jtalley24 commented 6 years ago

when attempting to remove the conda env in anaconda prompt:

"CondaEnvironmentError: cannot remove current environment. deactivate and run conda remove again"