I have just downloaded DriftFusion, and am using it on MacOS.
Found an issue in the function "lightsource.m". Here the revision (AM15_data(2:end,1), AM15_data(2:end,2)):
""
%% Start code
if source_type == 'AM15'
% Load AM1.5
AM15data = xlsread('AM15.xls');
AM15 = 1e-3*interp1(AM15_data(2:end,1), AM15_data(2:end,2)_, lambda, 'linear', 'extrap'); % Converts to W cm-2 nm-1
end
""
It seems that xlsread returns a first row of nans for some reason, therefore removed row one in AM15_data using (2:end). Not sure its the best option though.
Hello,
I have just downloaded DriftFusion, and am using it on MacOS.
Found an issue in the function "lightsource.m". Here the revision (AM15_data(2:end,1), AM15_data(2:end,2)): "" %% Start code if source_type == 'AM15' % Load AM1.5 AM15data = xlsread('AM15.xls'); AM15 = 1e-3*interp1(AM15_data(2:end,1), AM15_data(2:end,2)_, lambda, 'linear', 'extrap'); % Converts to W cm-2 nm-1 end ""
It seems that xlsread returns a first row of nans for some reason, therefore removed row one in AM15_data using (2:end). Not sure its the best option though.
Kind Regards, Maxim Simmonds PhD HZB Berlin