Commit aa30fded authored by Dipl.-Ing. Jonas Stienen's avatar Dipl.-Ing. Jonas Stienen
Browse files

Adding temptative loading of urban trajectory files, falling back for other...

Adding temptative loading of urban trajectory files, falling back for other folder in case first isn't found
parent d0113c31
......@@ -6,10 +6,13 @@
% Requires ITA-Toolbox, obtain from http://www.ita-toolbox.org
%ppa_folder = '../../../ITAGeometricalAcoustics/ITAPropagationPathSim/tests/CombinedModel/UrbanTrajectory';
ppa_folder = '../../../dist/win32-x64.vc12/bin/UrbanTrajectory';
if isfolder( ppa_folder ) && ~exist( ppa_folder, 'dir' )
if ~exist( ppa_folder, 'dir' )
ppa_folder = '../../../ITAGeometricalAcoustics/ITAPropagationPathSim/tests/CombinedModel/UrbanTrajectory';
end
if ~exist( ppa_folder, 'dir' )
error( 'Could not find trajectory source folder "%s".', ppa_folder )
end
ppa_diffraction_model = 'utd';
......@@ -173,7 +176,6 @@ for n = n_continue:N
pu.identifier = pp.identifier;
[ frequency_mags, gain, delay, valid_p ] = ita_propagation_path_get_data( pp, f, c);
ita_res
if ~valid_p %catch for error in ita_propagation_path_get_data
warning( 'Error in ita_propagation_path_get_data, found invalid path ''%s'', skipping', pp.identifier );
......
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