Skip to content

Commit

Permalink
Bug fixed re model without label
Browse files Browse the repository at this point in the history
  • Loading branch information
peterson-tim-j committed Apr 24, 2024
1 parent 25ee4a7 commit 6760f3d
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions GUI/HydroSight_GUI.m
Original file line number Diff line number Diff line change
Expand Up @@ -6852,6 +6852,16 @@ function onBuildModels(this, ~, ~)
% Update status in GUI
drawnow

% Get model label
model_label = data{i,2};

% Check model label is input
if isempty(model_label)
this.tab_ModelConstruction.Table.Data{i, end} = '<html><font color = "#FF0000">Model label error - label cannot be empty.</font></html>';
nModelsBuiltFailed = nModelsBuiltFailed + 1;
continue;
end

% Import head data
%----------------------------------------------------------
% Check the obs. head file is listed
Expand Down Expand Up @@ -6995,10 +7005,7 @@ function onBuildModels(this, ~, ~)
continue;
end
%----------------------------------------------------------

% Get model label
model_label = data{i,2};


% Get bore IDs
boreID= data{i,6};

Expand Down

0 comments on commit 6760f3d

Please sign in to comment.