From 947a7266994bfd5154aa6047fbad833a664586bb Mon Sep 17 00:00:00 2001 From: Ke Date: Fri, 29 Sep 2023 19:29:45 -0400 Subject: [PATCH] update single_cell.py: loading traj img dataset optional --- livecellx/core/single_cell.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/livecellx/core/single_cell.py b/livecellx/core/single_cell.py index 5f083c8..fab3a5d 100644 --- a/livecellx/core/single_cell.py +++ b/livecellx/core/single_cell.py @@ -615,6 +615,8 @@ def get_feature_pd_series(self): res_series = tmp_series else: res_series = pd.concat([res_series, tmp_series]) + # add time frame information + res_series["t"] = self.timeframe return res_series def get_napari_shape_vec(self, coords): @@ -953,7 +955,8 @@ def load_from_json_dict(self, json_dict, img_dataset=None, share_img_dataset=Tru raise Warning(f"mask_dataset_json_path {mask_dataset_json_path} does not exist") if self.img_dataset is None: - raise ValueError("img_dataset is None after attempting to load it") + main_warning("[SCT loading] img_dataset is None after attempting to load it") + # raise ValueError("img_dataset is None after attempting to load it") self.img_total_timeframe = len(self.img_dataset) if self.img_dataset is not None else 0 self.timeframe_to_single_cell = {}