Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
 into staging
  • Loading branch information
ttngu207 committed Jun 26, 2024
2 parents 990f6b1 + ddf8a83 commit c189c48
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
6 changes: 4 additions & 2 deletions element_interface/caiman_loader.py
Original file line number Diff line number Diff line change
Expand Up @@ -293,8 +293,10 @@ def _get_image(self, img_type):
)
else:
img_ = np.dstack(
pln_cm.motion_correction[img_type][...]
for pln_cm in self.planes.values()
[
pln_cm.motion_correction[img_type][...]
for pln_cm in self.planes.values()
]
)
return img_

Expand Down
7 changes: 4 additions & 3 deletions element_interface/run_caiman.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import pathlib

import cv2
import os
import pathlib
import shutil

try:
cv2.setNumThreads(0)
Expand Down Expand Up @@ -45,7 +46,7 @@ def run_caiman(
opts = params.CNMFParams(params_dict=parameters)

c, dview, n_processes = cm.cluster.setup_cluster(
backend="local", n_processes=None, single_thread=False
backend="multiprocessing", n_processes=None
)

try:
Expand Down

0 comments on commit c189c48

Please sign in to comment.