-
Notifications
You must be signed in to change notification settings - Fork 7
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
---------------------------------------------------------------------------
UnboundLocalError Traceback (most recent call last)
Cell In[13], line 2
1 project.selection_f.segmentation_channel_to_select = "seg_all_cytosol" #update to the correct channel for this notebook with out loading a different config
----> 2 project.select(cells_to_select, calibration_marker, name = "desired_XML_name")
File ~/Documents/GitHub/scPortrait/src/scportrait/pipeline/project.py:1197, in Project.select(self, cell_sets, calibration_marker, name)
1193 raise ValueError("No nucleus or cytosol segmentation loaded. Please load a segmentation first.")
1195 assert len(self.sdata._shared_keys) > 0, "sdata object is empty."
-> 1197 self.selection_f(
1198 cell_sets=cell_sets,
1199 calibration_marker=calibration_marker,
1200 name=name,
1201 )
1202 self.get_project_status()
File ~/Documents/GitHub/scPortrait/src/scportrait/pipeline/_base.py:253, in ProcessingStep.__call__(self, debug, overwrite, *args, **kwargs)
251 process = getattr(self, "process", None)
252 if callable(process):
--> 253 x = self.process(*args, **kwargs)
254 # clear temp directory after processing is completed
255 if not self.deep_debug:
File ~/Documents/GitHub/scPortrait/src/scportrait/pipeline/selection.py:314, in LMDSelection.process(self, cell_sets, calibration_marker, name)
311 self.cell_sets = cell_sets
312 self.calibration_marker = calibration_marker
--> 314 self._setup_selection()
316 start_time = timeit.default_timer()
317 cell_ids = self._get_cell_ids(cell_sets)
File ~/Documents/GitHub/scPortrait/src/scportrait/pipeline/selection.py:89, in LMDSelection._setup_selection(self)
86 name = "selected_cells"
88 # create savepath
---> 89 savename = name.replace(" ", "_") + ".xml"
90 self.savepath = os.path.join(self.directory, savename)
92 # check that the segmentation label exists
UnboundLocalError: local variable 'name' referenced before assignment
reported by @machth
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working