From 385cef1e69141a71edac4eecfcc33f71dbbb8953 Mon Sep 17 00:00:00 2001 From: kushalbakshi Date: Thu, 23 May 2024 10:28:05 -0400 Subject: [PATCH] Fix(suite2p_loader): Return nan array if "VCorr" not in suite2p output --- element_interface/suite2p_loader.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/element_interface/suite2p_loader.py b/element_interface/suite2p_loader.py index 2e6884b..e16fd3f 100644 --- a/element_interface/suite2p_loader.py +++ b/element_interface/suite2p_loader.py @@ -247,7 +247,7 @@ def max_proj_image(self): @property def correlation_map(self): - return self.ops["Vcorr"] + return self.ops.get("VCorr", np.full_like(self.mean_image, np.nan)) @property def alignment_channel(self):