Skip to content
This repository has been archived by the owner on Nov 26, 2023. It is now read-only.

Commit

Permalink
fix cnmf 3d unseeded
Browse files Browse the repository at this point in the history
  • Loading branch information
kushalkolar committed May 28, 2021
1 parent c99a971 commit 1a99f82
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions mesmerize/viewer/modules/cnmf_3d.py
Original file line number Diff line number Diff line change
Expand Up @@ -175,17 +175,19 @@ def add_to_batch(self, params: dict = None) -> UUID:
bm.df.loc[bm.df['uuid'] == memmap_uuid, 'save_temp_files'] = 1

if self.ui.groupBox_seed_components.isChecked():
if self.ui.groupBox_seed_components.isChecked():
seed_path = self.ui.lineEdit_seed_components_path.text()
if not os.path.isfile(seed_path):
raise FileNotFoundError(
"Seed file does not exist, check the path"
)
seed_path = self.ui.lineEdit_seed_components_path.text()
if not os.path.isfile(seed_path):
raise FileNotFoundError(
"Seed file does not exist, check the path"
)

seed_params = HdfTools.load_dict(seed_path, 'data/segment_params')
seed_params = HdfTools.load_dict(seed_path, 'data/segment_params')

d['use_seeds'] = True
d['seed_params'] = seed_params
d['use_seeds'] = True
d['seed_params'] = seed_params

else:
d['use_seeds'] = False

u = bm.add_item(
module='CNMF_3D',
Expand Down

0 comments on commit 1a99f82

Please sign in to comment.