@@ -152,6 +152,9 @@ def mainAIMEC(pathDict, inputsDF, cfg):
152152 if cfgSetup .getboolean ('includeReference' ):
153153 referenceDF = aimecTools .createReferenceDF (pathDict )
154154 refDataTransformed , referenceDF = postProcessReference (cfg , rasterTransfo , pathDict , referenceDF , newRasters )
155+ # save resultsDF to file
156+ referenceDFPath = pathlib .Path (pathDict ["pathResult" ], "referenceDF.csv" )
157+ referenceDF .to_csv (referenceDFPath )
155158 else :
156159 refDataTransformed = {}
157160
@@ -178,7 +181,7 @@ def mainAIMEC(pathDict, inputsDF, cfg):
178181 if sorted (pathDict ['resTypeList' ]) == sorted (['ppr' , 'pft' , 'pfv' ]) and cfgPlots .getboolean ('extraPlots' ):
179182 outAimec .visuSimple (cfgSetup , rasterTransfo , resAnalysisDF , newRasters , pathDict )
180183 if len (resAnalysisDF .index ) == 2 and sorted (pathDict ['resTypeList' ]) == sorted (['ppr' , 'pft' , 'pfv' ]):
181- plotName = outAimec .visuRunoutComp (rasterTransfo , resAnalysisDF , cfgSetup , pathDict )
184+ plotName = outAimec .visuRunoutComp (rasterTransfo , resAnalysisDF , cfgSetup , pathDict )
182185
183186 plotName = outAimec .visuRunoutStat (rasterTransfo , inputsDF , resAnalysisDF , newRasters , cfgSetup , pathDict )
184187
@@ -415,9 +418,9 @@ def postProcessAIMEC(cfg, rasterTransfo, pathDict, resAnalysisDF, newRasters, ti
415418
416419
417420def postProcessReference (cfg , rasterTransfo , pathDict , referenceDF , newRasters ):
418- """ Apply domain transformation and analyse reference data, e.g. compute runout point
421+ """Apply domain transformation and analyse reference data, e.g. compute runout point
419422
420- Apply the domain tranformation to reference data sets
423+ Apply the domain transformation to reference data sets
421424 Analyse them.
422425 Calculate runout
423426
0 commit comments