Skip to content

Commit

Permalink
Merge pull request #862 from flatironinstitute/dev_fix_tuples
Browse files Browse the repository at this point in the history
Fix tuples
  • Loading branch information
pgunn authored Apr 5, 2021
2 parents e2b191d + 788992b commit eab8e20
Show file tree
Hide file tree
Showing 21 changed files with 4 additions and 10,845 deletions.
5 changes: 4 additions & 1 deletion caiman/motion_correction.py
Original file line number Diff line number Diff line change
Expand Up @@ -179,12 +179,15 @@ def __init__(self, fname, min_mov=None, dview=None, max_shifts=(6, 6), niter_rig
"""
if 'ndarray' in str(type(fname)):
logging.info('Creating file for motion correction "tmp_mov_mot_corr.hdf5"')
cm.movie(fname).save('./tmp_mov_mot_corr.hdf5')
cm.movie(fname).save('./tmp_mov_mot_corr.hdf5') # FIXME don't write to the current directory!
fname = ['./tmp_mov_mot_corr.hdf5']

if type(fname) is not list:
fname = [fname]

if type(gSig_filt) is tuple:
gSig_filt = list(gSig_filt) # There are some serializers down the line that choke otherwise

self.fname = fname
self.dview = dview
self.max_shifts = max_shifts
Expand Down
149 changes: 0 additions & 149 deletions demos/obsolete/1_1/demo_OnACID_1_1.py

This file was deleted.

Loading

0 comments on commit eab8e20

Please sign in to comment.