Skip to content

Commit 385cef1

Browse files
committed
Fix(suite2p_loader): Return nan array if "VCorr" not in suite2p output
1 parent 95a51d1 commit 385cef1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

element_interface/suite2p_loader.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ def max_proj_image(self):
247247

248248
@property
249249
def correlation_map(self):
250-
return self.ops["Vcorr"]
250+
return self.ops.get("VCorr", np.full_like(self.mean_image, np.nan))
251251

252252
@property
253253
def alignment_channel(self):

0 commit comments

Comments
 (0)