minor changes in datastorage
This commit is contained in:
@@ -125,7 +125,7 @@ classdef DataStorage < handle
|
||||
lin_idx = obj.getIndicesByPhys(varargin);
|
||||
errcnt = 0;
|
||||
for i=1:numel(lin_idx)
|
||||
try
|
||||
% try
|
||||
tmp = obj.sto.(storageVarName){lin_idx(i)};
|
||||
if ~isempty(tmp)
|
||||
if isa(tmp,'Signal')
|
||||
@@ -145,17 +145,17 @@ classdef DataStorage < handle
|
||||
end
|
||||
else
|
||||
errcnt = errcnt+1;
|
||||
|
||||
value(i,:) = NaN ;
|
||||
if errcnt < 3
|
||||
%get back the n-dimensional subiondices...
|
||||
[sub{1:length(size(obj.sto.(storageVarName)))}] = ind2sub(size(obj.sto.(storageVarName)),lin_idx(i));
|
||||
% [sub{1:length(size(obj.sto.(storageVarName)))}] = ind2sub(size(obj.sto.(storageVarName)),lin_idx(i));
|
||||
|
||||
%get back the physical representaion
|
||||
word = [];
|
||||
for phys_idx = 1:numel(obj.fn)
|
||||
parametername = obj.fn(phys_idx);
|
||||
word = [word,char(parametername),': ', num2str(obj.parameter.(parametername).getPhysForIndex(sub{phys_idx})),' ;'];
|
||||
end
|
||||
% word = [];
|
||||
% for phys_idx = 1:numel(obj.fn)
|
||||
% parametername = obj.fn(phys_idx);
|
||||
% word = [word,char(parametername),': ', num2str(obj.parameter.(parametername).getPhysForIndex(sub{phys_idx})),' ;'];
|
||||
% end
|
||||
% warning(['Requested Data is not in Warehouse ', word]);
|
||||
elseif errcnt == 3
|
||||
% warning(['... ', word]);
|
||||
@@ -166,9 +166,9 @@ classdef DataStorage < handle
|
||||
% warning([num2str(errcnt),' requested datapoint(s) not in warehouse.']);
|
||||
end
|
||||
|
||||
catch
|
||||
error('Error in Datastorage: Something happened while looking up in warehouse.')
|
||||
end
|
||||
% catch
|
||||
% error('Error in Datastorage: Something happened while looking up in warehouse.')
|
||||
% end
|
||||
end
|
||||
else
|
||||
error('Wrong Request using ExampleWarehouse.getStoValue(*parameter set*). Give me all the Parameters! Please!')
|
||||
|
||||
Reference in New Issue
Block a user