@@ -273,6 +273,9 @@ function load_traj_buttom_Callback(hObject, eventdata, handles)
273
273
switch choice
274
274
case ' Yes'
275
275
[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
276
279
case ' No'
277
280
groups_path = {};
278
281
disp(' No animal groups specified. All animals will belong to group 1' );
@@ -314,17 +317,11 @@ function load_traj_buttom_Callback(hObject, eventdata, handles)
314
317
segmentation_configs = config_segments(user_input );
315
318
if isempty(segmentation_configs .TRAJECTORIES )
316
319
% resume main GUI visibility
317
- set(temp ,' Visible' ,' on' );
318
- if isempty(groups_path )
319
- return ;
320
- end
320
+ set(temp ,' Visible' ,' on' );
321
321
return ;
322
322
end
323
323
% resume main GUI visibility
324
324
set(temp ,' Visible' ,' on' );
325
- if isempty(groups_path )
326
- return ;
327
- end
328
325
% check if object is already cached and if not save it
329
326
rpath = check_cached_objects(segmentation_configs ,1 );
330
327
set(handles .seg_path ,' String' ,rpath );
@@ -457,7 +454,10 @@ function browse_trajectories_Callback(hObject, eventdata, handles)
457
454
%% CODE FOR RESULTS BUTTONS %%
458
455
459
456
function res_test_Callback(hObject , eventdata , handles )
457
+ temp = findall(gcf );
458
+ set(temp ,' Visible' ,' off' );
460
459
published_results(' execute' );
460
+ set(temp ,' Visible' ,' on' );
461
461
462
462
function lat_sp_len_Callback(hObject , eventdata , handles )
463
463
% see if we have the path for the segmentation_config file
0 commit comments