Commit f7009434 authored by Saskia Wepner's avatar Saskia Wepner

modified error message 'no histogram set' to a version with more details. i...

modified error message 'no histogram set' to a version with more details. i did this because that message might even occur with the histogram set but a somehow corrupted sketchup file. took me hours to understand that. maybe one day this message will save life time of somebody ... ;)
parent b65b7453
......@@ -2440,7 +2440,7 @@ classdef itaRavenProject < handle
%------------------------------------------------------------------
function histo = getHistogram(obj)
if isempty(obj.histogram)
error('No histogram present.');
error(sprintf('No histogram present.\nHINT: This error message might occur due to a corrupted SketchUp export.\nIf you are sure that the histogram is set, you could try to export your room model and raven project file again.')); %#ok
end
if numel(obj.histogramRT) > 1
......@@ -2491,7 +2491,7 @@ classdef itaRavenProject < handle
%------------------------------------------------------------------
function histo = getHistogramEnergyAdded(obj)
if isempty(obj.histogram)
error('No histogram present.');
error(sprintf('No histogram present.\nHINT: This error message might occur due to a corrupted SketchUp export.\nIf you are sure that the histogram is set, you could try to export your room model and raven project file again.')); %#ok
end
numberFrequencyBands = size(obj.histogram{find(~cellfun(@isempty, obj.histogram), 1)}.data, 2);
......@@ -4279,7 +4279,7 @@ classdef itaRavenProject < handle
end
% load histogram
if isempty(obj.histogram)
error('No histogram present.');
error(sprintf('No histogram present.\nHINT: This error message might occur due to a corrupted SketchUp export.\nIf you are sure that the histogram is set, you could try to export your room model and raven project file again.')); %#ok
end
% preallocation
......@@ -4808,7 +4808,7 @@ classdef itaRavenProject < handle
sphereEnergy(i) = 10*log10( sum(obj.monauralIR{sourceID+1,i}.^2) );
end
else
error('No histogram present.');
error(sprintf('No histogram present.\nHINT: This error message might occur due to a corrupted SketchUp export.\nIf you are sure that the histogram is set, you could try to export your room model and raven project file again.')); %#ok
end
else
sphereEnergy = zeros(size(obj.histogram,2), 1);
......@@ -4931,7 +4931,7 @@ classdef itaRavenProject < handle
surfaceEnergy(i) = 10*log10( sum(obj.monauralIR{sourceID+1,i}.^2) );
end
else
error('No histogram present.');
error(sprintf('No histogram present.\nHINT: This error message might occur due to a corrupted SketchUp export.\nIf you are sure that the histogram is set, you could try to export your room model and raven project file again.')); %#ok
end
else
sphereEnergy = zeros(size(obj.histogram,2), 1);
......@@ -4966,7 +4966,7 @@ classdef itaRavenProject < handle
surfaceEnergy(i) = sum(obj.monauralIR{sourceID+1,i}.^2);
end
else
error('No histogram present.');
error(sprintf('No histogram present.\nHINT: This error message might occur due to a corrupted SketchUp export.\nIf you are sure that the histogram is set, you could try to export your room model and raven project file again.')); %#ok
end
else
sphereEnergy = zeros(size(obj.histogram,2), 1);
......@@ -5024,7 +5024,7 @@ classdef itaRavenProject < handle
end
end
else
error('No histogram present.');
error(sprintf('No histogram present.\nHINT: This error message might occur due to a corrupted SketchUp export.\nIf you are sure that the histogram is set, you could try to export your room model and raven project file again.')); %#ok
end
else
numTimeSteps = numel(obj.histogram{find(~cellfun(@isempty, obj.histogram), 1)}.timevector);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment