The UFZ services GitLab and Mattermost will be unavailable on Monday, October 25 from 06:00 AM to 08:00 AM due to maintenance work.

Commit a1b72eb4 authored by Johannes Leins's avatar Johannes Leins
Browse files

fixed bugs in stats output

parent 7e9d97c6
Pipeline #18892 passed with stage
in 52 seconds
......@@ -666,11 +666,11 @@ bool initBatchRun(int initialSimulationYear, int finalSimulationYear) {
*fileMeanStatsBase << "xCoord,yCoord,disturbance,initialYear,finalYear";
if(!prognosis) {
fileStats = new ofstream(filenameStats.str());
*fileStats << "distSchemeName,xCoord,yCoord,seed,disturbance,year";
*fileStats << "lifetime,firstVisit,firstEst,finalDensity,nExtinction,nQuasiExtinction,meanDensity,meanMigration";
*fileMeanStatsBase << "lifetime,firstVisit,firstEst,finalDensity,nExtinction,nQuasiExtinction,meanDensity,meanMigration";
*fileStats << ",distSchemeName,xCoord,yCoord,seed,disturbance,year";
*fileStats << ",lifetime,firstVisit,firstEst,finalDensity,nExtinction,nQuasiExtinction,meanDensity,meanMigration";
*fileMeanStatsBase << ",lifetime,firstVisit,firstEst,finalDensity,nExtinction,nQuasiExtinction,meanDensity,meanMigration";
if(yearly) {
*fileStatsYearly << "lifetime,firstVisit,firstEst,finalDensity,nExtinction,nQuasiExtinction,meanDensity,meanMigration";
*fileStatsYearly << ",lifetime,firstVisit,firstEst,finalDensity,nExtinction,nQuasiExtinction,meanDensity,meanMigration";
}
}
*fileStages << "seed,disturbance_scenario,year,iLon,iLat";
......@@ -877,7 +877,9 @@ void outputMeanStats(int initialYear, int finalYear) {
if(disturbanceSchemeName == nameBaseScheme || !prognosis) {
outputMeanStatsSingle(initialYear, finalYear, population, coord, disturbanceName, fileMeanStatsBase);
}
outputMeanStatsSingle(initialYear, finalYear, population, coord, disturbanceName, fileMeanStats);
if(prognosis) {
outputMeanStatsSingle(initialYear, finalYear, population, coord, disturbanceName, fileMeanStats);
}
}
continue;
}
......
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