File tree Expand file tree Collapse file tree
src/aind_ephys_portal/panel Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -236,9 +236,10 @@ def _initialize(self):
236236
237237 if error is not None :
238238 print (f"Error during initialization: { error } " )
239- self .layout = pn .Column (
240- pn .pane .Markdown (f"⚠️ Error during initialization: { error } " , sizing_mode = "stretch_both" )
241- )
239+ if len (self .layout ) > 0 :
240+ self .layout [0 ] = pn .pane .Markdown (
241+ f"⚠️ Error during initialization: { error } " , sizing_mode = "stretch_both"
242+ )
242243 else :
243244 final_mem = psutil .virtual_memory ()
244245 final_ram_usage = final_mem .used / (1024 ** 3 )
@@ -269,9 +270,12 @@ def _set_processed_recording(self):
269270 access_path = path_iter .access_path
270271 break
271272 set_value_in_extractor_dict (recording_dict , access_path , self .recording_path )
272- recording_processed = si .load (recording_dict )
273- print (f"Processed recording loaded: { recording_processed } " )
274- self .analyzer .set_temporary_recording (recording_processed )
273+ try :
274+ recording_processed = si .load (recording_dict )
275+ print (f"Processed recording loaded: { recording_processed } " )
276+ self .analyzer .set_temporary_recording (recording_processed )
277+ except Exception as e :
278+ print (f"Error loading processed recording: { e } " )
275279
276280 def _create_main_window (self ):
277281 if self .analyzer is not None :
You can’t perform that action at this time.
0 commit comments