Skip to content

Commit cd6c984

Browse files
GUI calendar added to outlier analysis construction date
1 parent 08a9769 commit cd6c984

3 files changed

Lines changed: 37 additions & 3 deletions

File tree

ChangeLog.txt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -341,4 +341,8 @@ This file documents changes to HydroSight from version 1.2.6 onwards.
341341
* Model TFN consutcion options GUI changed from a panel of tables to cards of tables and a dropdown.
342342

343343
2 June 2025
344-
* Bug in outlier detection error message with bore ID is a number.
344+
* Bug in outlier detection error message with bore ID is a number.
345+
346+
3 June 2025
347+
* GUI calendar added to outlier analysis construction date.
348+
* Version number increased to 1.4.1.6

GUI/HydroSight_GUI.m

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2313,6 +2313,36 @@ function dataPrep_tableSelection(this, hObject, eventdata)
23132313
set(this.tab_DataPrep.modelOptions.vbox, 'Sizes',[-1 -1]);
23142314
set(this.Figure, 'pointer', 'arrow');
23152315

2316+
case 'Construction Date (dd-mmm-yyyy)'
2317+
% Open the calander with the already input date,
2318+
% else use the start date of the obs. head.
2319+
minDate = datenum( '01-Jan-1700','dd-mmm-yyyy');
2320+
maxDate = now();
2321+
defaultDate = datenum( '01-Jan-1970','dd-mmm-yyyy');
2322+
if isempty(data{irow,icol})
2323+
inputDate = defaultDate;
2324+
else
2325+
try
2326+
inputDate = datenum( data{irow,icol},'dd-mmm-yyyy');
2327+
catch
2328+
inputDate = defaultDate;
2329+
end
2330+
inputDate = min(max(minDate, inputDate),maxDate);
2331+
end
2332+
2333+
2334+
selectedDate = uical(inputDate, 'English',minDate, maxDate, this.figure_icon,'Construction date');
2335+
2336+
% Check date is between start and end date of obs
2337+
% head.
2338+
if selectedDate < minDate || selectedDate > maxDate
2339+
h = warndlg('The construction date must be before today and after 1/1/1700.','Date error');
2340+
setIcon(this, h);
2341+
else
2342+
data{eventdata.Indices(1),eventdata.Indices(2)} = datestr(selectedDate,'dd-mmm-yyyy');
2343+
end
2344+
set(hObject,'Data',data);
2345+
23162346
case 'Analysis Status'
23172347
modelStatus = HydroSight_GUI.removeHTMLTags(data{irow,16});
23182348

algorithms/getHydroSightVersion.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
function [versionNumber,versionDate] = getHydroSightVersion()
22
%getVersion Get verion number of HydroSight
33

4-
versionNumber = '1.4.1.5';
5-
versionDate= ' 4 Apr. 2023';
4+
versionNumber = '1.4.1.6';
5+
versionDate= ' 3 June 2025';
66
end

0 commit comments

Comments
 (0)