From 6760f3dcb64fe6742b4271836ccf5632c073a9f9 Mon Sep 17 00:00:00 2001 From: Tim Peterson Date: Wed, 24 Apr 2024 17:59:18 +1000 Subject: [PATCH] Bug fixed re model without label --- GUI/HydroSight_GUI.m | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/GUI/HydroSight_GUI.m b/GUI/HydroSight_GUI.m index 1eef10b..d9609bd 100644 --- a/GUI/HydroSight_GUI.m +++ b/GUI/HydroSight_GUI.m @@ -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} = 'Model label error - label cannot be empty.'; + nModelsBuiltFailed = nModelsBuiltFailed + 1; + continue; + end + % Import head data %---------------------------------------------------------- % Check the obs. head file is listed @@ -6995,10 +7005,7 @@ function onBuildModels(this, ~, ~) continue; end %---------------------------------------------------------- - - % Get model label - model_label = data{i,2}; - + % Get bore IDs boreID= data{i,6};