Skip to content

Commit c78eed4

Browse files
Update saveDepolConst.m
1 parent dd57d94 commit c78eed4

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

lib/io/saveDepolConst.m

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,10 +48,7 @@ function saveDepolConst(dbFile, depolconst, depolconstStd, ...
4848
%% insert data
4949
for iDC = 1:length(depolconst)
5050

51-
if isnan(depolconst(iDC)) || isnan(depolconstStd(iDC) || isempty(dcStartTime) || isempty(dcStopTime))
52-
continue;
53-
end
54-
51+
if (~isnan(depolconst(iDC)) && ~isnan(depolconstStd(iDC)) && ~isempty(dcStartTime) && ~isempty(dcStopTime))
5552
stmt.executeUpdate(sprintf(['INSERT OR REPLACE INTO depol_calibration_constant', ...
5653
'(cali_start_time, cali_stop_time,', ...
5754
'depol_const, uncertainty_depol_const, ', ...
@@ -64,6 +61,7 @@ function saveDepolConst(dbFile, depolconst, depolconstStd, ...
6461
wavelength, ...
6562
pollyDataFilename, ...
6663
pollyType));
64+
end
6765
end
6866

6967
%% close connection

0 commit comments

Comments
 (0)