@@ -273,6 +273,9 @@ function load_traj_buttom_Callback(hObject, eventdata, handles)
273273 switch choice
274274 case ' Yes'
275275 [groups_path ] = animal_groups(paths , get(handles .field_id ,' String' ), str2num(get(handles .text_sessions ,' String' )));
276+ if isempty(groups_path )
277+ return ;
278+ end
276279 case ' No'
277280 groups_path = {};
278281 disp(' No animal groups specified. All animals will belong to group 1' );
@@ -314,17 +317,11 @@ function load_traj_buttom_Callback(hObject, eventdata, handles)
314317 segmentation_configs = config_segments(user_input );
315318 if isempty(segmentation_configs .TRAJECTORIES )
316319 % resume main GUI visibility
317- set(temp ,' Visible' ,' on' );
318- if isempty(groups_path )
319- return ;
320- end
320+ set(temp ,' Visible' ,' on' );
321321 return ;
322322 end
323323 % resume main GUI visibility
324324 set(temp ,' Visible' ,' on' );
325- if isempty(groups_path )
326- return ;
327- end
328325 % check if object is already cached and if not save it
329326 rpath = check_cached_objects(segmentation_configs ,1 );
330327 set(handles .seg_path ,' String' ,rpath );
@@ -457,7 +454,10 @@ function browse_trajectories_Callback(hObject, eventdata, handles)
457454%% CODE FOR RESULTS BUTTONS %%
458455
459456function res_test_Callback(hObject , eventdata , handles )
457+ temp = findall(gcf );
458+ set(temp ,' Visible' ,' off' );
460459 published_results(' execute' );
460+ set(temp ,' Visible' ,' on' );
461461
462462function lat_sp_len_Callback(hObject , eventdata , handles )
463463 % see if we have the path for the segmentation_config file
0 commit comments