1010 " import sys\n " ,
1111 " # option to import from github folder\n " ,
1212 " sys.path.insert(0, 'C:/Users/carse/github/suite2p/')\n " ,
13- " from suite2p import run_s2p\n " ,
13+ " from suite2p import run_s2p, default_ops \n " ,
1414 " \n " ,
1515 " # set your options for running\n " ,
16- " ops = run_s2p. default_ops() # populates ops with the default options"
16+ " ops = default_ops() # populates ops with the default options"
1717 ]
1818 },
1919 {
3838 " }\n " ,
3939 " \n " ,
4040 " # run one experiment\n " ,
41- " opsEnd= run_s2p.run_s2p (ops=ops,db=db)"
41+ " opsEnd = run_s2p(ops=ops, db=db)"
4242 ]
4343 },
4444 {
5353 " db.append({'data_path': ['C:/Users/carse/github/tiffs2']})\n " ,
5454 " \n " ,
5555 " for dbi in db:\n " ,
56- " opsEnd= run_s2p.run_s2p (ops=ops,db=dbi)"
56+ " opsEnd = run_s2p(ops=ops, db=dbi)"
5757 ]
5858 },
5959 {
7777 " \n " ,
7878 " \n " ,
7979 " # run one experiment\n " ,
80- " opsEnd=run_s2p. run_s2p(ops=ops,db=db)\n "
80+ " opsEnd = run_s2p(ops=ops,db=db)\n "
8181 ]
8282 },
8383 {
109109 " \n " ,
110110 " \n " ,
111111 " # run one experiment\n " ,
112- " opsEnd=run_s2p.run_s2p (ops=ops,db=db)\n "
112+ " opsEnd=run_s2p(ops=ops, db=db)\n "
113113 ]
114114 },
115115 {
121121 " ## change the save directory from 'suite2p' to a chosen name\n " ,
122122 " # note the fast_disk will always be in 'suite2p', just the save_path will change\n " ,
123123 " \n " ,
124- " ops = run_s2p. default_ops() # populates ops with the default options\n " ,
124+ " ops = default_ops() # populates ops with the default options\n " ,
125125 " ops['sparse_mode'] = 1\n " ,
126126 " ops['threshold_scaling'] = 3.0\n " ,
127127 " db = {\n " ,
134134 " }\n " ,
135135 " \n " ,
136136 " # run one experiment\n " ,
137- " opsEnd= run_s2p.run_s2p (ops=ops,db=db)"
137+ " opsEnd = run_s2p(ops=ops, db=db)"
138138 ]
139139 },
140140 {
145145 "source" : [
146146 " # h5py file with multiple data fields (untested)\n " ,
147147 " \n " ,
148- " ops = run_s2p. default_ops() # populates ops with the default options\n " ,
148+ " ops = default_ops() # populates ops with the default options\n " ,
149149 " ops['nplanes'] = 12\n " ,
150150 " ops['nchannels'] = 2\n " ,
151151 " ops['fs'] = 5.0\n " ,
158158 " }\n " ,
159159 " \n " ,
160160 " # run one experiment\n " ,
161- " opsEnd= run_s2p.run_s2p (ops=ops,db=db)"
161+ " opsEnd = run_s2p(ops=ops, db=db)"
162162 ]
163163 }
164164 ],
183183 },
184184 "nbformat" : 4 ,
185185 "nbformat_minor" : 2
186- }
186+ }
0 commit comments