avaframe 2.1rc5__tar.gz → 2.2__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- avaframe-2.2/.github/pull_request_template.md +12 -0
- {avaframe-2.1rc5 → avaframe-2.2}/.github/workflows/buildAndUploadPyPi.yml +1 -2
- avaframe-2.2/.github/workflows/require-checklist.yml +16 -0
- {avaframe-2.1rc5 → avaframe-2.2}/.github/workflows/runTestSinglePython.yml +1 -1
- {avaframe-2.1rc5 → avaframe-2.2}/PKG-INFO +4 -1
- avaframe-2.2/avaframe/RELEASE-VERSION.txt +1 -0
- {avaframe-2.1rc5 → avaframe-2.2}/avaframe/ana1Tests/FPtest.py +2 -2
- {avaframe-2.1rc5 → avaframe-2.2}/avaframe/ana1Tests/energyLineTest.py +8 -8
- {avaframe-2.1rc5 → avaframe-2.2}/avaframe/ana1Tests/testUtilities.py +2 -0
- {avaframe-2.1rc5 → avaframe-2.2}/avaframe/ana3AIMEC/ana3AIMEC.py +204 -1
- {avaframe-2.1rc5 → avaframe-2.2}/avaframe/ana4Stats/probAna.py +41 -32
- {avaframe-2.1rc5 → avaframe-2.2}/avaframe/ana4Stats/probAnaCfg.ini +10 -3
- avaframe-2.2/avaframe/ana5Utils/DFAPathGeneration.py +1178 -0
- {avaframe-2.1rc5 → avaframe-2.2}/avaframe/ana5Utils/DFAPathGenerationCfg.ini +25 -2
- avaframe-2.2/avaframe/ana5Utils/preparePathGeneral.py +140 -0
- avaframe-2.2/avaframe/ana6Optimisation/README_ana6.md +282 -0
- avaframe-2.2/avaframe/ana6Optimisation/optimisationUtils.py +1041 -0
- avaframe-2.2/avaframe/ana6Optimisation/runMorrisSA.py +166 -0
- avaframe-2.2/avaframe/ana6Optimisation/runMorrisSACfg.ini +74 -0
- avaframe-2.2/avaframe/ana6Optimisation/runOptimisation.py +297 -0
- avaframe-2.2/avaframe/ana6Optimisation/runOptimisationCfg.ini +143 -0
- avaframe-2.2/avaframe/ana6Optimisation/runPlotMorrisConvergence.py +37 -0
- {avaframe-2.1rc5 → avaframe-2.2}/avaframe/com1DFA/DFAToolsCython.c +12153 -7981
- {avaframe-2.1rc5 → avaframe-2.2}/avaframe/com1DFA/DFAfunctionsCython.c +22424 -15884
- {avaframe-2.1rc5 → avaframe-2.2}/avaframe/com1DFA/DFAfunctionsCython.pyx +16 -11
- {avaframe-2.1rc5 → avaframe-2.2}/avaframe/com1DFA/DFAtools.py +52 -4
- {avaframe-2.1rc5 → avaframe-2.2}/avaframe/com1DFA/com1DFA.py +325 -94
- {avaframe-2.1rc5 → avaframe-2.2}/avaframe/com1DFA/com1DFACfg.ini +21 -7
- {avaframe-2.1rc5 → avaframe-2.2}/avaframe/com1DFA/com1DFATools.py +7 -6
- {avaframe-2.1rc5 → avaframe-2.2}/avaframe/com1DFA/damCom1DFA.c +15929 -11476
- avaframe-2.2/avaframe/com1DFA/debrisFunctions.py +434 -0
- {avaframe-2.1rc5 → avaframe-2.2}/avaframe/com1DFA/deriveParameterSet.py +78 -45
- {avaframe-2.1rc5 → avaframe-2.2}/avaframe/com1DFA/particleTools.py +191 -1
- {avaframe-2.1rc5 → avaframe-2.2}/avaframe/com1DFA/testSPH.py +7 -7
- avaframe-2.2/avaframe/com4FlowPy/benchmark/.gitignore +7 -0
- avaframe-2.2/avaframe/com4FlowPy/benchmark/README.md +46 -0
- avaframe-2.2/avaframe/com4FlowPy/benchmark/REPORT.md +232 -0
- avaframe-2.2/avaframe/com4FlowPy/benchmark/fixtures/example.ini.template +24 -0
- avaframe-2.2/avaframe/com4FlowPy/benchmark/flowpy_bench.py +348 -0
- {avaframe-2.1rc5 → avaframe-2.2}/avaframe/com4FlowPy/com4FlowPy.py +635 -129
- {avaframe-2.1rc5 → avaframe-2.2}/avaframe/com4FlowPy/com4FlowPyCfg.ini +54 -1
- {avaframe-2.1rc5 → avaframe-2.2}/avaframe/com4FlowPy/flowClass.py +46 -23
- {avaframe-2.1rc5 → avaframe-2.2}/avaframe/com4FlowPy/flowCore.py +124 -44
- avaframe-2.2/avaframe/com4FlowPy/flowCoreNumba.py +654 -0
- {avaframe-2.1rc5 → avaframe-2.2}/avaframe/com4FlowPy/splitAndMerge.py +148 -21
- {avaframe-2.1rc5 → avaframe-2.2}/avaframe/com6RockAvalanche/com6RockAvalancheCfg.ini +6 -33
- {avaframe-2.1rc5 → avaframe-2.2}/avaframe/com6RockAvalanche/scarp.py +117 -30
- {avaframe-2.1rc5 → avaframe-2.2}/avaframe/com8MoTPSA/com8MoTPSA.py +67 -20
- {avaframe-2.1rc5 → avaframe-2.2}/avaframe/com8MoTPSA/com8MoTPSACfg.ini +35 -12
- {avaframe-2.1rc5 → avaframe-2.2}/avaframe/com8MoTPSA/runAna4ProbAnaCom8MoTPSA.py +9 -12
- avaframe-2.2/avaframe/com9MoTVoellmy/MoT-Voellmy_linux.exe +0 -0
- avaframe-2.2/avaframe/com9MoTVoellmy/MoT-Voellmy_win.exe +0 -0
- {avaframe-2.1rc5 → avaframe-2.2}/avaframe/com9MoTVoellmy/_buildMoTVoellmy.py +32 -4
- {avaframe-2.1rc5 → avaframe-2.2}/avaframe/com9MoTVoellmy/com9MoTVoellmy.py +0 -6
- {avaframe-2.1rc5 → avaframe-2.2}/avaframe/in1Data/getInput.py +286 -21
- {avaframe-2.1rc5 → avaframe-2.2}/avaframe/in2Trans/rasterUtils.py +91 -1
- {avaframe-2.1rc5 → avaframe-2.2}/avaframe/in2Trans/shpConversion.py +7 -7
- {avaframe-2.1rc5 → avaframe-2.2}/avaframe/in2Trans/transformFields.py +28 -27
- {avaframe-2.1rc5 → avaframe-2.2}/avaframe/in3Utils/MoTUtils.py +9 -39
- {avaframe-2.1rc5 → avaframe-2.2}/avaframe/in3Utils/cfgHandling.py +60 -0
- {avaframe-2.1rc5 → avaframe-2.2}/avaframe/in3Utils/cfgUtils.py +14 -12
- {avaframe-2.1rc5 → avaframe-2.2}/avaframe/in3Utils/fileHandlerUtils.py +162 -0
- {avaframe-2.1rc5 → avaframe-2.2}/avaframe/in3Utils/geoTrans.py +236 -133
- avaframe-2.2/avaframe/in3Utils/spatialVoellmyInputs.py +152 -0
- avaframe-2.2/avaframe/in3Utils/spatialVoellmyInputsCfg.ini +6 -0
- {avaframe-2.1rc5 → avaframe-2.2}/avaframe/log2Report/generateCompareReport.py +78 -0
- {avaframe-2.1rc5 → avaframe-2.2}/avaframe/out1Peak/outPlotAllPeak.py +5 -5
- {avaframe-2.1rc5 → avaframe-2.2}/avaframe/out1Peak/outPlotAllPeakDiffs.py +122 -6
- {avaframe-2.1rc5 → avaframe-2.2}/avaframe/out3Plot/amaPlots.py +6 -6
- {avaframe-2.1rc5 → avaframe-2.2}/avaframe/out3Plot/outAB.py +2 -2
- {avaframe-2.1rc5 → avaframe-2.2}/avaframe/out3Plot/outAIMEC.py +51 -51
- {avaframe-2.1rc5 → avaframe-2.2}/avaframe/out3Plot/outAna1Plots.py +15 -15
- avaframe-2.2/avaframe/out3Plot/outAna6Plots.py +1114 -0
- {avaframe-2.1rc5 → avaframe-2.2}/avaframe/out3Plot/outCom1DFA.py +46 -32
- avaframe-2.2/avaframe/out3Plot/outCom3Plots.py +339 -0
- {avaframe-2.1rc5 → avaframe-2.2}/avaframe/out3Plot/outCom7Regional.py +1 -1
- {avaframe-2.1rc5 → avaframe-2.2}/avaframe/out3Plot/outContours.py +1 -1
- {avaframe-2.1rc5 → avaframe-2.2}/avaframe/out3Plot/outDebugPlots.py +109 -5
- {avaframe-2.1rc5 → avaframe-2.2}/avaframe/out3Plot/outDistanceTimeAnalysis.py +23 -23
- {avaframe-2.1rc5 → avaframe-2.2}/avaframe/out3Plot/outParticlesAnalysis.py +151 -44
- {avaframe-2.1rc5 → avaframe-2.2}/avaframe/out3Plot/outProfilePlots.py +12 -12
- {avaframe-2.1rc5 → avaframe-2.2}/avaframe/out3Plot/outQuickPlot.py +15 -15
- {avaframe-2.1rc5 → avaframe-2.2}/avaframe/out3Plot/outTopo.py +6 -6
- {avaframe-2.1rc5 → avaframe-2.2}/avaframe/out3Plot/outTransformPlots.py +2 -2
- {avaframe-2.1rc5 → avaframe-2.2}/avaframe/out3Plot/plotUtils.py +42 -4
- {avaframe-2.1rc5 → avaframe-2.2}/avaframe/out3Plot/plotUtilsCfg.ini +6 -0
- {avaframe-2.1rc5 → avaframe-2.2}/avaframe/out3Plot/statsPlots.py +8 -8
- {avaframe-2.1rc5 → avaframe-2.2}/avaframe/runCom4FlowPy.py +226 -45
- {avaframe-2.1rc5 → avaframe-2.2}/avaframe/runCom6RockAvalanche.py +52 -4
- avaframe-2.2/avaframe/runScripts/runParticlesAssetsInfo.py +134 -0
- avaframe-2.2/avaframe/runScripts/runPlotAreaRefDiffs.py +202 -0
- {avaframe-2.1rc5 → avaframe-2.2}/avaframe/runScripts/runPlotProfile.py +1 -1
- avaframe-2.2/avaframe/runScripts/runSpatialVoellmyInputs.py +55 -0
- {avaframe-2.1rc5 → avaframe-2.2}/avaframe/runStandardTestsCom1DFA.py +26 -2
- avaframe-2.2/avaframe/runStandardTestsCom4FlowPy.py +266 -0
- {avaframe-2.1rc5 → avaframe-2.2}/avaframe.egg-info/PKG-INFO +4 -1
- {avaframe-2.1rc5 → avaframe-2.2}/avaframe.egg-info/SOURCES.txt +24 -0
- {avaframe-2.1rc5 → avaframe-2.2}/avaframe.egg-info/requires.txt +4 -0
- avaframe-2.2/avaframe.egg-info/scm_file_list.json +1756 -0
- avaframe-2.2/avaframe.egg-info/scm_version.json +8 -0
- {avaframe-2.1rc5 → avaframe-2.2}/pyproject.toml +14 -0
- avaframe-2.1rc5/avaframe/RELEASE-VERSION.txt +0 -1
- avaframe-2.1rc5/avaframe/ana5Utils/DFAPathGeneration.py +0 -752
- avaframe-2.1rc5/avaframe/com1DFA/debrisFunctions.py +0 -268
- avaframe-2.1rc5/avaframe/com9MoTVoellmy/MoT-Voellmy_linux.exe +0 -0
- avaframe-2.1rc5/avaframe/com9MoTVoellmy/MoT-Voellmy_win.exe +0 -0
- avaframe-2.1rc5/avaframe/out3Plot/outCom3Plots.py +0 -209
- avaframe-2.1rc5/avaframe/runScripts/runPlotAreaRefDiffs.py +0 -138
- {avaframe-2.1rc5 → avaframe-2.2}/.coveragerc +0 -0
- {avaframe-2.1rc5 → avaframe-2.2}/.gitattributes +0 -0
- {avaframe-2.1rc5 → avaframe-2.2}/.github/ISSUE_TEMPLATE/bug_report.md +0 -0
- {avaframe-2.1rc5 → avaframe-2.2}/.github/ISSUE_TEMPLATE/com1dfa-dev-topic.md +0 -0
- {avaframe-2.1rc5 → avaframe-2.2}/.github/ISSUE_TEMPLATE/standard-issue.md +0 -0
- {avaframe-2.1rc5 → avaframe-2.2}/.gitignore +0 -0
- {avaframe-2.1rc5 → avaframe-2.2}/.qlty/qlty.toml +0 -0
- {avaframe-2.1rc5 → avaframe-2.2}/.readthedocs.yml +0 -0
- {avaframe-2.1rc5 → avaframe-2.2}/.zenodo.json +0 -0
- {avaframe-2.1rc5 → avaframe-2.2}/LICENSE.txt +0 -0
- {avaframe-2.1rc5 → avaframe-2.2}/MANIFEST.in +0 -0
- {avaframe-2.1rc5 → avaframe-2.2}/README.md +0 -0
- {avaframe-2.1rc5 → avaframe-2.2}/avaframe/__init__.py +0 -0
- {avaframe-2.1rc5 → avaframe-2.2}/avaframe/ana1Tests/__init__.py +0 -0
- {avaframe-2.1rc5 → avaframe-2.2}/avaframe/ana1Tests/analysisTools.py +0 -0
- {avaframe-2.1rc5 → avaframe-2.2}/avaframe/ana1Tests/damBreak.py +0 -0
- {avaframe-2.1rc5 → avaframe-2.2}/avaframe/ana1Tests/energyLineTestCfg.ini +0 -0
- {avaframe-2.1rc5 → avaframe-2.2}/avaframe/ana1Tests/rotationTest.py +0 -0
- {avaframe-2.1rc5 → avaframe-2.2}/avaframe/ana1Tests/rotationTestCfg.ini +0 -0
- {avaframe-2.1rc5 → avaframe-2.2}/avaframe/ana1Tests/simiSolTest.py +0 -0
- {avaframe-2.1rc5 → avaframe-2.2}/avaframe/ana3AIMEC/__init__.py +0 -0
- {avaframe-2.1rc5 → avaframe-2.2}/avaframe/ana3AIMEC/aimecTools.py +0 -0
- {avaframe-2.1rc5 → avaframe-2.2}/avaframe/ana3AIMEC/ana3AIMECCfg.ini +0 -0
- {avaframe-2.1rc5 → avaframe-2.2}/avaframe/ana3AIMEC/dfa2Aimec.py +0 -0
- {avaframe-2.1rc5 → avaframe-2.2}/avaframe/ana4Stats/__init__.py +0 -0
- {avaframe-2.1rc5 → avaframe-2.2}/avaframe/ana4Stats/getStats.py +0 -0
- {avaframe-2.1rc5 → avaframe-2.2}/avaframe/ana4Stats/getStatsCfg.ini +0 -0
- {avaframe-2.1rc5 → avaframe-2.2}/avaframe/ana5Utils/__init__.py +0 -0
- {avaframe-2.1rc5 → avaframe-2.2}/avaframe/ana5Utils/distanceTimeAnalysis.py +0 -0
- {avaframe-2.1rc5 → avaframe-2.2}/avaframe/ana5Utils/distanceTimeAnalysisCfg.ini +0 -0
- {avaframe-2.1rc5 → avaframe-2.2}/avaframe/avaframeCfg.ini +0 -0
- {avaframe-2.1rc5 → avaframe-2.2}/avaframe/com1DFA/DFAToolsCython.pxd +0 -0
- {avaframe-2.1rc5 → avaframe-2.2}/avaframe/com1DFA/DFAToolsCython.pyx +0 -0
- {avaframe-2.1rc5 → avaframe-2.2}/avaframe/com1DFA/DFAfunctionsCython.pxd +0 -0
- {avaframe-2.1rc5 → avaframe-2.2}/avaframe/com1DFA/__init__.py +0 -0
- {avaframe-2.1rc5 → avaframe-2.2}/avaframe/com1DFA/checkCfg.py +0 -0
- {avaframe-2.1rc5 → avaframe-2.2}/avaframe/com1DFA/damCom1DFA.pxd +0 -0
- {avaframe-2.1rc5 → avaframe-2.2}/avaframe/com1DFA/damCom1DFA.pyx +0 -0
- {avaframe-2.1rc5 → avaframe-2.2}/avaframe/com1DFA/particleInitialisation.py +0 -0
- {avaframe-2.1rc5 → avaframe-2.2}/avaframe/com1DFA/timeDiscretizations.py +0 -0
- {avaframe-2.1rc5 → avaframe-2.2}/avaframe/com2AB/__init__.py +0 -0
- {avaframe-2.1rc5 → avaframe-2.2}/avaframe/com2AB/com2AB.py +0 -0
- {avaframe-2.1rc5 → avaframe-2.2}/avaframe/com2AB/com2ABCfg.ini +0 -0
- {avaframe-2.1rc5 → avaframe-2.2}/avaframe/com3Hybrid/__init__.py +0 -0
- {avaframe-2.1rc5 → avaframe-2.2}/avaframe/com3Hybrid/com3Hybrid.py +0 -0
- {avaframe-2.1rc5 → avaframe-2.2}/avaframe/com3Hybrid/com3HybridCfg.ini +0 -0
- {avaframe-2.1rc5 → avaframe-2.2}/avaframe/com4FlowPy/__init__.py +0 -0
- {avaframe-2.1rc5 → avaframe-2.2}/avaframe/com5SnowSlide/__init__.py +0 -0
- {avaframe-2.1rc5 → avaframe-2.2}/avaframe/com5SnowSlide/com5SnowSlide.py +0 -0
- {avaframe-2.1rc5 → avaframe-2.2}/avaframe/com5SnowSlide/com5SnowSlideCfg.ini +0 -0
- {avaframe-2.1rc5 → avaframe-2.2}/avaframe/com6RockAvalanche/__init__.py +0 -0
- {avaframe-2.1rc5 → avaframe-2.2}/avaframe/com6RockAvalanche/com6RockAvalanche.py +0 -0
- {avaframe-2.1rc5 → avaframe-2.2}/avaframe/com6RockAvalanche/scarpCfg.ini +0 -0
- {avaframe-2.1rc5 → avaframe-2.2}/avaframe/com7Regional/__init__.py +0 -0
- {avaframe-2.1rc5 → avaframe-2.2}/avaframe/com7Regional/com7Regional.py +0 -0
- {avaframe-2.1rc5 → avaframe-2.2}/avaframe/com7Regional/com7RegionalCfg.ini +0 -0
- {avaframe-2.1rc5 → avaframe-2.2}/avaframe/com7Regional/splitInputs.py +0 -0
- {avaframe-2.1rc5 → avaframe-2.2}/avaframe/com7Regional/splitInputsCfg.ini +0 -0
- {avaframe-2.1rc5 → avaframe-2.2}/avaframe/com8MoTPSA/README_dev.md +0 -0
- {avaframe-2.1rc5 → avaframe-2.2}/avaframe/com8MoTPSA/__init__.py +0 -0
- {avaframe-2.1rc5 → avaframe-2.2}/avaframe/com8MoTPSA/runCom8MoTPSA.py +0 -0
- {avaframe-2.1rc5 → avaframe-2.2}/avaframe/com9MoTVoellmy/__init__.py +0 -0
- {avaframe-2.1rc5 → avaframe-2.2}/avaframe/com9MoTVoellmy/com9MoTVoellmyCfg.ini +0 -0
- {avaframe-2.1rc5 → avaframe-2.2}/avaframe/com9MoTVoellmy/runCom9MoTVoellmy.py +0 -0
- {avaframe-2.1rc5 → avaframe-2.2}/avaframe/in1Data/__init__.py +0 -0
- {avaframe-2.1rc5 → avaframe-2.2}/avaframe/in1Data/computeFromDistribution.py +0 -0
- {avaframe-2.1rc5 → avaframe-2.2}/avaframe/in1Data/computeFromDistributionCfg.ini +0 -0
- {avaframe-2.1rc5 → avaframe-2.2}/avaframe/in2Trans/__init__.py +0 -0
- {avaframe-2.1rc5 → avaframe-2.2}/avaframe/in2Trans/ascUtils.py +0 -0
- {avaframe-2.1rc5 → avaframe-2.2}/avaframe/in3Utils/__init__.py +0 -0
- {avaframe-2.1rc5 → avaframe-2.2}/avaframe/in3Utils/generateTopo.py +0 -0
- {avaframe-2.1rc5 → avaframe-2.2}/avaframe/in3Utils/generateTopoCfg.ini +0 -0
- {avaframe-2.1rc5 → avaframe-2.2}/avaframe/in3Utils/getReleaseArea.py +0 -0
- {avaframe-2.1rc5 → avaframe-2.2}/avaframe/in3Utils/getReleaseAreaCfg.ini +0 -0
- {avaframe-2.1rc5 → avaframe-2.2}/avaframe/in3Utils/initialiseDirs.py +0 -0
- {avaframe-2.1rc5 → avaframe-2.2}/avaframe/in3Utils/initializeProject.py +0 -0
- {avaframe-2.1rc5 → avaframe-2.2}/avaframe/in3Utils/logUtils.py +0 -0
- {avaframe-2.1rc5 → avaframe-2.2}/avaframe/in3Utils/logging.conf +0 -0
- {avaframe-2.1rc5 → avaframe-2.2}/avaframe/log2Report/__init__.py +0 -0
- {avaframe-2.1rc5 → avaframe-2.2}/avaframe/log2Report/generateCompareReportCfg.ini +0 -0
- {avaframe-2.1rc5 → avaframe-2.2}/avaframe/log2Report/generateReport.py +0 -0
- {avaframe-2.1rc5 → avaframe-2.2}/avaframe/out1Peak/__init__.py +0 -0
- {avaframe-2.1rc5 → avaframe-2.2}/avaframe/out3Plot/__init__.py +0 -0
- {avaframe-2.1rc5 → avaframe-2.2}/avaframe/out3Plot/in1DataPlots.py +0 -0
- {avaframe-2.1rc5 → avaframe-2.2}/avaframe/out3Plot/outParticlesAnalysisCfg.ini +0 -0
- {avaframe-2.1rc5 → avaframe-2.2}/avaframe/out3Plot/outQuickPlotCfg.ini +0 -0
- {avaframe-2.1rc5 → avaframe-2.2}/avaframe/runAna4ProbAna.py +0 -0
- {avaframe-2.1rc5 → avaframe-2.2}/avaframe/runAna5DFAPathGeneration.py +0 -0
- {avaframe-2.1rc5 → avaframe-2.2}/avaframe/runCom1DFA.py +0 -0
- {avaframe-2.1rc5 → avaframe-2.2}/avaframe/runCom2AB.py +0 -0
- {avaframe-2.1rc5 → avaframe-2.2}/avaframe/runCom5SnowSlide.py +0 -0
- {avaframe-2.1rc5 → avaframe-2.2}/avaframe/runCom6Scarp.py +0 -0
- {avaframe-2.1rc5 → avaframe-2.2}/avaframe/runCom7Regional.py +0 -0
- {avaframe-2.1rc5 → avaframe-2.2}/avaframe/runIn1RelInfo.py +0 -0
- {avaframe-2.1rc5 → avaframe-2.2}/avaframe/runOperational.py +0 -0
- {avaframe-2.1rc5 → avaframe-2.2}/avaframe/runPlotCom1DFA.py +0 -0
- {avaframe-2.1rc5 → avaframe-2.2}/avaframe/runProbAnalysisOnly.py +0 -0
- {avaframe-2.1rc5 → avaframe-2.2}/avaframe/runScripts/runAimecSummaryPlot.py +0 -0
- {avaframe-2.1rc5 → avaframe-2.2}/avaframe/runScripts/runAna3AIMEC.py +0 -0
- {avaframe-2.1rc5 → avaframe-2.2}/avaframe/runScripts/runAna3AIMECCompMods.py +0 -0
- {avaframe-2.1rc5 → avaframe-2.2}/avaframe/runScripts/runAnalyzeDamBreak.py +0 -0
- {avaframe-2.1rc5 → avaframe-2.2}/avaframe/runScripts/runAnalyzeSimilaritySol.py +0 -0
- {avaframe-2.1rc5 → avaframe-2.2}/avaframe/runScripts/runCom3Hybrid.py +0 -0
- {avaframe-2.1rc5 → avaframe-2.2}/avaframe/runScripts/runComputeDist.py +0 -0
- {avaframe-2.1rc5 → avaframe-2.2}/avaframe/runScripts/runContourPlot.py +0 -0
- {avaframe-2.1rc5 → avaframe-2.2}/avaframe/runScripts/runCreateProbCfgsFlowPy.py +0 -0
- {avaframe-2.1rc5 → avaframe-2.2}/avaframe/runScripts/runD2Th.py +0 -0
- {avaframe-2.1rc5 → avaframe-2.2}/avaframe/runScripts/runDamBreak.py +0 -0
- {avaframe-2.1rc5 → avaframe-2.2}/avaframe/runScripts/runEnergyLineTest.py +0 -0
- {avaframe-2.1rc5 → avaframe-2.2}/avaframe/runScripts/runExportToCsv.py +0 -0
- {avaframe-2.1rc5 → avaframe-2.2}/avaframe/runScripts/runFetchPointValues.py +0 -0
- {avaframe-2.1rc5 → avaframe-2.2}/avaframe/runScripts/runGenProjTopoRelease.py +0 -0
- {avaframe-2.1rc5 → avaframe-2.2}/avaframe/runScripts/runGenerateTopo.py +0 -0
- {avaframe-2.1rc5 → avaframe-2.2}/avaframe/runScripts/runInitializeProject.py +0 -0
- {avaframe-2.1rc5 → avaframe-2.2}/avaframe/runScripts/runParticleAnalysisPlots.py +0 -0
- {avaframe-2.1rc5 → avaframe-2.2}/avaframe/runScripts/runPlotAlongGivenProfile.py +0 -0
- {avaframe-2.1rc5 → avaframe-2.2}/avaframe/runScripts/runPlotContoursFromAsc.py +0 -0
- {avaframe-2.1rc5 → avaframe-2.2}/avaframe/runScripts/runPlotContoursFromAscCfg.ini +0 -0
- {avaframe-2.1rc5 → avaframe-2.2}/avaframe/runScripts/runPlotTopo.py +0 -0
- {avaframe-2.1rc5 → avaframe-2.2}/avaframe/runScripts/runProbAna.py +0 -0
- {avaframe-2.1rc5 → avaframe-2.2}/avaframe/runScripts/runQuickPlotOne.py +0 -0
- {avaframe-2.1rc5 → avaframe-2.2}/avaframe/runScripts/runQuickPlotSimple.py +0 -0
- {avaframe-2.1rc5 → avaframe-2.2}/avaframe/runScripts/runRangeTimeDiagram.py +0 -0
- {avaframe-2.1rc5 → avaframe-2.2}/avaframe/runScripts/runRenaming.py +0 -0
- {avaframe-2.1rc5 → avaframe-2.2}/avaframe/runScripts/runRotationTest.py +0 -0
- {avaframe-2.1rc5 → avaframe-2.2}/avaframe/runScripts/runSimilaritySol.py +0 -0
- {avaframe-2.1rc5 → avaframe-2.2}/avaframe/runScripts/runStatsExample.py +0 -0
- {avaframe-2.1rc5 → avaframe-2.2}/avaframe/runScripts/runStatsExampleSimple.py +0 -0
- {avaframe-2.1rc5 → avaframe-2.2}/avaframe/runScripts/runStatsPlots.py +0 -0
- {avaframe-2.1rc5 → avaframe-2.2}/avaframe/runScripts/runTestFP.py +0 -0
- {avaframe-2.1rc5 → avaframe-2.2}/avaframe/runScripts/runThalwegTimeDiagram.py +0 -0
- {avaframe-2.1rc5 → avaframe-2.2}/avaframe/runScripts/runVariationsTestsCom1DFA.py +0 -0
- {avaframe-2.1rc5 → avaframe-2.2}/avaframe/runScripts/runWriteDesDict.py +0 -0
- {avaframe-2.1rc5 → avaframe-2.2}/avaframe/runTmp1Ex.py +0 -0
- {avaframe-2.1rc5 → avaframe-2.2}/avaframe/runUpdateBenchmarkTestsCom1DFA.py +0 -0
- {avaframe-2.1rc5 → avaframe-2.2}/avaframe/tmp1Ex/__init__.py +0 -0
- {avaframe-2.1rc5 → avaframe-2.2}/avaframe/tmp1Ex/tmp1Ex.py +0 -0
- {avaframe-2.1rc5 → avaframe-2.2}/avaframe/tmp1Ex/tmp1ExCfg.ini +0 -0
- {avaframe-2.1rc5 → avaframe-2.2}/avaframe/version.py +0 -0
- {avaframe-2.1rc5 → avaframe-2.2}/avaframe.egg-info/dependency_links.txt +0 -0
- {avaframe-2.1rc5 → avaframe-2.2}/avaframe.egg-info/top_level.txt +0 -0
- {avaframe-2.1rc5 → avaframe-2.2}/requirements.txt +0 -0
- {avaframe-2.1rc5 → avaframe-2.2}/setup.cfg +0 -0
- {avaframe-2.1rc5 → avaframe-2.2}/setup.py +0 -0
- {avaframe-2.1rc5 → avaframe-2.2}/tinyHelper/extractDEM.sh +0 -0
- {avaframe-2.1rc5 → avaframe-2.2}/tinyHelper/logHelper_extractProcessAndTimes.sh +0 -0
- {avaframe-2.1rc5 → avaframe-2.2}/tinyHelper/logHelper_extractProcessTimesAndParams.sh +0 -0
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
## PR Checklist
|
|
2
|
+
|
|
3
|
+
Please confirm before requesting review:
|
|
4
|
+
|
|
5
|
+
- [ ] I ran `pytest` locally without fails
|
|
6
|
+
- [ ] I added/updated tests where needed
|
|
7
|
+
- [ ] I updated documentation where needed
|
|
8
|
+
|
|
9
|
+
Confirm before the final merge/rebase into master
|
|
10
|
+
|
|
11
|
+
- [ ] Commits are sensibly squashed and rebased onto latest master
|
|
12
|
+
- [ ] Standardtest run without difference (with recompiled cython code)
|
|
@@ -13,8 +13,7 @@ jobs:
|
|
|
13
13
|
runs-on: ${{ matrix.os }}
|
|
14
14
|
strategy:
|
|
15
15
|
matrix:
|
|
16
|
-
|
|
17
|
-
os: [ ubuntu-latest, windows-latest, macos-14 ]
|
|
16
|
+
os: [ ubuntu-latest, windows-latest, macos-latest ]
|
|
18
17
|
# os: [ubuntu-latest, ubuntu-24.04-arm, windows-latest, windows-11-arm, macos-13, macos-14]
|
|
19
18
|
|
|
20
19
|
steps:
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
name: Require PR Checklist
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
pull_request:
|
|
5
|
+
types: [opened, edited, synchronize, reopened]
|
|
6
|
+
workflow_dispatch:
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
jobs:
|
|
10
|
+
require-checklist:
|
|
11
|
+
runs-on: ubuntu-latest
|
|
12
|
+
|
|
13
|
+
steps:
|
|
14
|
+
- uses: mheap/require-checklist-action@v2
|
|
15
|
+
with:
|
|
16
|
+
requireChecklist: true
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: avaframe
|
|
3
|
-
Version: 2.
|
|
3
|
+
Version: 2.2
|
|
4
4
|
Summary: The Open Avalanche Framework
|
|
5
5
|
Author-email: AvaFrame Contributors <felix@avaframe.org>
|
|
6
6
|
License-Expression: EUPL-1.2
|
|
@@ -34,6 +34,9 @@ Requires-Dist: rasterio
|
|
|
34
34
|
Requires-Dist: contextily
|
|
35
35
|
Requires-Dist: geopandas
|
|
36
36
|
Requires-Dist: fiona
|
|
37
|
+
Requires-Dist: scikit-learn
|
|
38
|
+
Provides-Extra: numba
|
|
39
|
+
Requires-Dist: numba; extra == "numba"
|
|
37
40
|
Dynamic: license-file
|
|
38
41
|
|
|
39
42
|
**The AvaFrame documentation is hosted on ReadTheDocs: http://docs.avaframe.org**
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
2.2
|
|
@@ -155,11 +155,11 @@ def plotProfilesFPtest(cfg, ind_time, relDict, comSol):
|
|
|
155
155
|
|
|
156
156
|
ax1.plot(np.linspace(xllc, xllc+(ncols-1)*csz, ncols), relTh[100, :], '--k')
|
|
157
157
|
ax1.plot(r, H0-mu*(r-deltaX), '-k', label='initial expected flow thickness')
|
|
158
|
-
ax1.set_xlabel('r in
|
|
158
|
+
ax1.set_xlabel('r in (m)')
|
|
159
159
|
ax1.set_title('flow thickness, t=%.2f s' % (Tsave))
|
|
160
160
|
|
|
161
161
|
ax2.plot(r, mu*np.ones(np.shape(r)), '-k', label='friction threashold')
|
|
162
|
-
ax2.set_xlabel('r in
|
|
162
|
+
ax2.set_xlabel('r in (m)')
|
|
163
163
|
ax2.set_title('Gradient of the flow thickness')
|
|
164
164
|
ax1.legend()
|
|
165
165
|
ax2.legend()
|
|
@@ -98,8 +98,8 @@ def generateCom1DFAEnergyPlot(avalancheDir, energyLineTestCfg, com1DFACfg, avaPr
|
|
|
98
98
|
ax1 = outCom1DFA.addDem2Plot(ax1, dem, what='hillshade', extent=extent)
|
|
99
99
|
ax1.plot(avaProfileMass['x'], avaProfileMass['y'], '-y.', zorder=20, label='Center of mass path',
|
|
100
100
|
lw=1, path_effects=[pe.Stroke(linewidth=2, foreground='k'), pe.Normal()])
|
|
101
|
-
ax1.set_xlabel('x
|
|
102
|
-
ax1.set_ylabel('y
|
|
101
|
+
ax1.set_xlabel('x (m)')
|
|
102
|
+
ax1.set_ylabel('y (m)')
|
|
103
103
|
ax1.axis('equal')
|
|
104
104
|
ax1.set_ylim([rowsMin, rowsMax])
|
|
105
105
|
ax1.set_xlim([colsMin, colsMax])
|
|
@@ -124,7 +124,7 @@ def generateCom1DFAEnergyPlot(avalancheDir, energyLineTestCfg, com1DFACfg, avaPr
|
|
|
124
124
|
scat = ax2.scatter(avaProfileMass['s'], zEne, marker='s', cmap=cmap, s=8*pU.ms, c=u2Path/(2*g),
|
|
125
125
|
label='Center of mass velocity altitude')
|
|
126
126
|
cbar2 = ax2.figure.colorbar(scat, ax=ax2, use_gridspec=True)
|
|
127
|
-
cbar2.ax.set_title('
|
|
127
|
+
cbar2.ax.set_title('(' + pU.cfgPlotUtils['unitFT'] + ')', pad=10)
|
|
128
128
|
cbar2.ax.set_ylabel('Center of mass velocity altitude')
|
|
129
129
|
|
|
130
130
|
# add alpha line
|
|
@@ -143,8 +143,8 @@ def generateCom1DFAEnergyPlot(avalancheDir, energyLineTestCfg, com1DFACfg, avaPr
|
|
|
143
143
|
color='r', linestyle='--')
|
|
144
144
|
ax2.hlines(y=zIntersection, color='b', xmin=0, xmax=sIntersection, linestyle='--')
|
|
145
145
|
|
|
146
|
-
ax2.set_xlabel('s
|
|
147
|
-
ax2.set_ylabel('z
|
|
146
|
+
ax2.set_xlabel('s (m)')
|
|
147
|
+
ax2.set_ylabel('z (m)')
|
|
148
148
|
ax2.set_xlim(sLim)
|
|
149
149
|
ax2.set_ylim(zLim)
|
|
150
150
|
ax2.legend(loc='upper right')
|
|
@@ -168,7 +168,7 @@ def generateCom1DFAEnergyPlot(avalancheDir, energyLineTestCfg, com1DFACfg, avaPr
|
|
|
168
168
|
scat = ax3.scatter(avaProfileMass['s'], zEne-z0, marker='s', cmap=cmap, s=8*pU.ms, c=u2Path/(2*g),
|
|
169
169
|
label='Center of mass velocity altitude extrapolation')
|
|
170
170
|
cbar3 = ax3.figure.colorbar(scat, ax=ax3, use_gridspec=True)
|
|
171
|
-
cbar3.ax.set_title('
|
|
171
|
+
cbar3.ax.set_title('(' + pU.cfgPlotUtils['unitFT'] + ')', pad=10)
|
|
172
172
|
cbar3.ax.set_ylabel('Center of mass velocity altitude')
|
|
173
173
|
|
|
174
174
|
# add alpha line
|
|
@@ -201,8 +201,8 @@ def generateCom1DFAEnergyPlot(avalancheDir, energyLineTestCfg, com1DFACfg, avaPr
|
|
|
201
201
|
color='r', linestyle='--')
|
|
202
202
|
ax3.hlines(y=zIntersection-z0, color='b', xmin=sMin, xmax=sIntersection, linestyle='--')
|
|
203
203
|
|
|
204
|
-
ax3.set_xlabel('s
|
|
205
|
-
ax3.set_ylabel('$\Delta z$
|
|
204
|
+
ax3.set_xlabel('s (m)')
|
|
205
|
+
ax3.set_ylabel('$\Delta z$ (m)')
|
|
206
206
|
ax3.yaxis.set_label_coords(0, 0.9)
|
|
207
207
|
ax3.set_xlim([sMin, sMax])
|
|
208
208
|
ax3.set_ylim([zMin, zMax])
|
|
@@ -92,6 +92,8 @@ def readAllBenchmarkDesDicts(info=False, inDir=""):
|
|
|
92
92
|
inDir = pathlib.Path("..", "benchmarks")
|
|
93
93
|
|
|
94
94
|
testDirs = list(inDir.glob("ava*"))
|
|
95
|
+
testDirsCom4 = list(inDir.glob("com4*"))
|
|
96
|
+
testDirs.extend(testDirsCom4)
|
|
95
97
|
testDictList = []
|
|
96
98
|
|
|
97
99
|
for testDir in testDirs:
|
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
import logging
|
|
6
6
|
import numpy as np
|
|
7
7
|
import pathlib
|
|
8
|
+
import pandas as pd
|
|
8
9
|
|
|
9
10
|
# Local imports
|
|
10
11
|
from avaframe.in2Trans import shpConversion
|
|
@@ -16,7 +17,7 @@ import avaframe.in1Data.getInput as gI
|
|
|
16
17
|
from avaframe.in3Utils import geoTrans
|
|
17
18
|
from avaframe.com1DFA import com1DFA
|
|
18
19
|
import avaframe.in3Utils.fileHandlerUtils as fU
|
|
19
|
-
|
|
20
|
+
import avaframe.in3Utils.cfgUtils as cfgUtils
|
|
20
21
|
|
|
21
22
|
# create local logger
|
|
22
23
|
log = logging.getLogger(__name__)
|
|
@@ -762,3 +763,205 @@ def addSLToParticles(avaDir, cfgAimec, demFileName, particlesList, saveToPickle=
|
|
|
762
763
|
rasterTransfo['demHeader'] = dem['header']
|
|
763
764
|
|
|
764
765
|
return particlesList, rasterTransfo, dem
|
|
766
|
+
|
|
767
|
+
|
|
768
|
+
def initialAimecRunoutDiffSetup(cfgAIMEC, avalancheDir, simName, comModule):
|
|
769
|
+
"""Setup thalweg following coordinate system using a reference simulation and DEM based on a runoutResType
|
|
770
|
+
and analyze reference data from e.g. observations
|
|
771
|
+
If only certain results of the aimec analysis workflow are required this provided info for domain transfo
|
|
772
|
+
|
|
773
|
+
Parameters
|
|
774
|
+
-----------
|
|
775
|
+
cfgAIMEC: configparser object
|
|
776
|
+
aimec configuration settings
|
|
777
|
+
avalancheDir: str or pathlib.Path
|
|
778
|
+
path to avalanche directory
|
|
779
|
+
simName: str
|
|
780
|
+
full simulation name or path thereof
|
|
781
|
+
comModule: str
|
|
782
|
+
name of computational module that has been used to run simulations
|
|
783
|
+
|
|
784
|
+
Returns
|
|
785
|
+
----------
|
|
786
|
+
aimecInfo: dict
|
|
787
|
+
dictionary including:
|
|
788
|
+
rasterTransfo dict (info about domain transformation)
|
|
789
|
+
newRasters dict (info on transformed DEM)
|
|
790
|
+
refDataTransformed dict (info on reference dataset (observations) transformed)
|
|
791
|
+
pathDict dict (info on all required input file paths, project name, etc.)
|
|
792
|
+
cfgAIMEC (aimec configuration settings)
|
|
793
|
+
"""
|
|
794
|
+
|
|
795
|
+
cfgSetup = cfgAIMEC["AIMECSETUP"]
|
|
796
|
+
# create data frame that lists all available simulations and path to their result type result files
|
|
797
|
+
inputsDF, resTypeList = fU.makeSimFromResDF(avalancheDir, comModule, inputDir="", simName=simName)
|
|
798
|
+
|
|
799
|
+
# use first simulation as reference
|
|
800
|
+
refSimRowHash = inputsDF.index[0]
|
|
801
|
+
refSimName = inputsDF.loc[refSimRowHash, "simName"]
|
|
802
|
+
|
|
803
|
+
# initialize pathDict
|
|
804
|
+
pathDict = {
|
|
805
|
+
"refSimRowHash": refSimRowHash,
|
|
806
|
+
"refSimName": refSimName,
|
|
807
|
+
"compType": ["singleModule", comModule],
|
|
808
|
+
"colorParameter": False,
|
|
809
|
+
"resTypeList": resTypeList,
|
|
810
|
+
"valRef": "",
|
|
811
|
+
"demFileName": "",
|
|
812
|
+
}
|
|
813
|
+
pathDict = aimecTools.readAIMECinputs(
|
|
814
|
+
avalancheDir, pathDict, cfgSetup.getboolean("defineRunoutArea"), dirName=comModule
|
|
815
|
+
)
|
|
816
|
+
pathDict = aimecTools.checkAIMECinputs(cfgSetup, pathDict, inputsDF)
|
|
817
|
+
|
|
818
|
+
# Extract input config parameters
|
|
819
|
+
interpMethod = cfgSetup["interpMethod"]
|
|
820
|
+
# Read input dem
|
|
821
|
+
demSource = pathDict["demSource"]
|
|
822
|
+
dem = IOf.readRaster(demSource)
|
|
823
|
+
# read reference file and raster and config
|
|
824
|
+
runoutResType = pathDict["runoutResType"]
|
|
825
|
+
runoutLayer = pathDict.get("runoutLayer", "")
|
|
826
|
+
refResTypeCol = aimecTools.resolveResTypeColumn(inputsDF.loc[refSimRowHash], runoutResType, runoutLayer)
|
|
827
|
+
refResultSource = inputsDF.loc[refSimRowHash, refResTypeCol]
|
|
828
|
+
refRaster = IOf.readRaster(refResultSource)
|
|
829
|
+
refHeader = refRaster["header"]
|
|
830
|
+
|
|
831
|
+
# Make domain transformation
|
|
832
|
+
rasterTransfo = aimecTools.makeDomainTransfo(pathDict, dem, refHeader["cellsize"], cfgSetup)
|
|
833
|
+
rasterTransfo["avaDir"] = pathDict["avalancheDir"]
|
|
834
|
+
|
|
835
|
+
# ####################################################
|
|
836
|
+
# visualisation
|
|
837
|
+
# TODO: needs to be moved somewhere else
|
|
838
|
+
newRasters = {}
|
|
839
|
+
log.debug("Assigning dem data to deskewed raster")
|
|
840
|
+
newRasters["newRasterDEM"] = aimecTools.transform(dem, demSource, rasterTransfo, interpMethod, dem=True)
|
|
841
|
+
|
|
842
|
+
# if includeReference add reference data to resAnalysisDF
|
|
843
|
+
if cfgSetup.getboolean("includeReference"):
|
|
844
|
+
referenceDF = aimecTools.createReferenceDF(pathDict)
|
|
845
|
+
refDataTransformed, referenceDF = postProcessReference(
|
|
846
|
+
cfgAIMEC, rasterTransfo, pathDict, referenceDF, newRasters
|
|
847
|
+
)
|
|
848
|
+
# save resultsDF to file
|
|
849
|
+
referenceDFPath = pathlib.Path(pathDict["pathResult"], "referenceDF.csv")
|
|
850
|
+
referenceDF.to_csv(referenceDFPath)
|
|
851
|
+
else:
|
|
852
|
+
refDataTransformed = {}
|
|
853
|
+
|
|
854
|
+
aimecInfo = {
|
|
855
|
+
"rasterTransfo": rasterTransfo,
|
|
856
|
+
"newRasters": newRasters,
|
|
857
|
+
"refDataTransformed": refDataTransformed,
|
|
858
|
+
"pathDict": pathDict,
|
|
859
|
+
"cfgAIMEC": cfgAIMEC,
|
|
860
|
+
}
|
|
861
|
+
# initialize an empty dataframe to collect runoutLineDiff_RMSE values for all simulations
|
|
862
|
+
aimecInfo["resAnalysisDFFull"] = pd.DataFrame()
|
|
863
|
+
|
|
864
|
+
return aimecInfo
|
|
865
|
+
|
|
866
|
+
|
|
867
|
+
def addSimToResAnalysisDFForRunoutComparison(avalancheDir, simName, comModule, aimecInfo):
|
|
868
|
+
"""analyze simulation in thalweg following coordinate system derive runout line and compare runout line to
|
|
869
|
+
reference rounout line
|
|
870
|
+
|
|
871
|
+
Parameters
|
|
872
|
+
-----------
|
|
873
|
+
avalancheDir : str or pathlib.Path
|
|
874
|
+
path to avalanche directory
|
|
875
|
+
simName : str
|
|
876
|
+
simulation name or part thereof as e.g. simHash
|
|
877
|
+
comModule : str
|
|
878
|
+
name of computational module that was used to run simulation
|
|
879
|
+
aimecInfo : dict
|
|
880
|
+
dictionary with info on domain transformation output from initialAimecRunoutDiffSetup()
|
|
881
|
+
|
|
882
|
+
Returns
|
|
883
|
+
-------
|
|
884
|
+
resAnalysisDF: pandas dataFrame
|
|
885
|
+
dataFrame with one row per simulation, so here only 1 row with runout line difference analysis
|
|
886
|
+
and simulation configuration
|
|
887
|
+
|
|
888
|
+
"""
|
|
889
|
+
|
|
890
|
+
# initialize required inputs and parameters
|
|
891
|
+
cfgSetup = aimecInfo["cfgAIMEC"]["AIMECSETUP"]
|
|
892
|
+
rasterTransfo = aimecInfo["rasterTransfo"]
|
|
893
|
+
newRasters = aimecInfo["newRasters"]
|
|
894
|
+
refDataTransformed = aimecInfo["refDataTransformed"]
|
|
895
|
+
pathDict = aimecInfo["pathDict"]
|
|
896
|
+
|
|
897
|
+
# create data frame that lists all available simulations and path to their result type result files
|
|
898
|
+
inputsDF, resTypeList = fU.makeSimFromResDF(avalancheDir, comModule, inputDir="", simName=simName)
|
|
899
|
+
# look for a configuration
|
|
900
|
+
try:
|
|
901
|
+
# load dataFrame for all configurations
|
|
902
|
+
configurationDF = cfgUtils.createConfigurationInfo(avalancheDir, comModule=comModule)
|
|
903
|
+
# Merge inputsDF with the configurationDF. Make sure to keep the indexing from inputs and to merge on 'simName'
|
|
904
|
+
inputsDF = (
|
|
905
|
+
inputsDF.reset_index().merge(configurationDF, on=["simName", "modelType"]).set_index("index")
|
|
906
|
+
)
|
|
907
|
+
configFound = True
|
|
908
|
+
except (NotADirectoryError, FileNotFoundError) as e:
|
|
909
|
+
configFound = False
|
|
910
|
+
|
|
911
|
+
refSimRowHash = inputsDF.index[0]
|
|
912
|
+
refSimName = inputsDF.loc[refSimRowHash, "simName"]
|
|
913
|
+
|
|
914
|
+
# update pathDict
|
|
915
|
+
pathDict["refSimRowHash"] = (refSimRowHash,)
|
|
916
|
+
pathDict["refSimName"] = (refSimName,)
|
|
917
|
+
|
|
918
|
+
# Extract input config parameters
|
|
919
|
+
interpMethod = cfgSetup["interpMethod"]
|
|
920
|
+
# add fields that will be filled in analysis
|
|
921
|
+
resAnalysisDF = aimecTools.addFieldsToDF(inputsDF)
|
|
922
|
+
# read reference file and raster and config
|
|
923
|
+
runoutResType = pathDict["runoutResType"]
|
|
924
|
+
runoutLayer = pathDict.get("runoutLayer", "")
|
|
925
|
+
resTypeCol = aimecTools.resolveResTypeColumn(
|
|
926
|
+
resAnalysisDF.loc[refSimRowHash], runoutResType, runoutLayer
|
|
927
|
+
)
|
|
928
|
+
inputFiles = resAnalysisDF.loc[refSimRowHash, resTypeCol]
|
|
929
|
+
if isinstance(inputFiles, pathlib.PurePath):
|
|
930
|
+
rasterData = IOf.readRaster(inputFiles)
|
|
931
|
+
newRaster = aimecTools.transform(rasterData, inputFiles, rasterTransfo, interpMethod)
|
|
932
|
+
newRasters["newRaster" + runoutResType.upper()] = newRaster
|
|
933
|
+
if cfgSetup.getboolean("includeReference"):
|
|
934
|
+
resAnalysisDF["runoutLineDiff_line"] = np.nan
|
|
935
|
+
resAnalysisDF["runoutLineDiff_line"] = resAnalysisDF["runoutLineDiff_line"].astype(object)
|
|
936
|
+
resAnalysisDF["runoutLineDiff_poly"] = np.nan
|
|
937
|
+
resAnalysisDF["runoutLineDiff_poly"] = resAnalysisDF["runoutLineDiff_line"].astype(object)
|
|
938
|
+
|
|
939
|
+
runoutLine = aimecTools.computeRunoutLine(
|
|
940
|
+
cfgSetup,
|
|
941
|
+
rasterTransfo,
|
|
942
|
+
newRasters,
|
|
943
|
+
refSimRowHash,
|
|
944
|
+
"simulation",
|
|
945
|
+
name="",
|
|
946
|
+
runoutResType=runoutResType,
|
|
947
|
+
)
|
|
948
|
+
|
|
949
|
+
# plot comparison between runout lines
|
|
950
|
+
outAimec.compareRunoutLines(
|
|
951
|
+
cfgSetup,
|
|
952
|
+
refDataTransformed,
|
|
953
|
+
newRasters["newRaster" + runoutResType.upper()],
|
|
954
|
+
runoutLine,
|
|
955
|
+
rasterTransfo,
|
|
956
|
+
resAnalysisDF.loc[refSimRowHash],
|
|
957
|
+
pathDict,
|
|
958
|
+
)
|
|
959
|
+
|
|
960
|
+
# analyze distribution of diffs between runout lines
|
|
961
|
+
resAnalysisDF = aimecTools.analyzeDiffsRunoutLines(
|
|
962
|
+
cfgSetup, runoutLine, refDataTransformed, resAnalysisDF, refSimRowHash, pathDict
|
|
963
|
+
)
|
|
964
|
+
resAnalysisDFPath = pathlib.Path(pathDict["pathResult"], "resAnalysisDF_%s.csv" % simName)
|
|
965
|
+
resAnalysisDF.to_csv(resAnalysisDFPath)
|
|
966
|
+
|
|
967
|
+
return resAnalysisDF
|
|
@@ -24,7 +24,6 @@ from avaframe.in3Utils import geoTrans as gT
|
|
|
24
24
|
from avaframe.out3Plot import statsPlots as sP
|
|
25
25
|
from avaframe.in1Data import getInput as gI
|
|
26
26
|
|
|
27
|
-
|
|
28
27
|
# create local logger
|
|
29
28
|
# change log level in calling module to DEBUG to see log messages
|
|
30
29
|
log = logging.getLogger(__name__)
|
|
@@ -203,17 +202,17 @@ def updateCfgRange(cfg, cfgProb, varName, varDict):
|
|
|
203
202
|
if valVariation == "":
|
|
204
203
|
valVariation = "-"
|
|
205
204
|
parValue = (
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
205
|
+
variationType
|
|
206
|
+
+ "$"
|
|
207
|
+
+ valSteps
|
|
208
|
+
+ "$"
|
|
209
|
+
+ valVariation
|
|
210
|
+
+ "$"
|
|
211
|
+
+ cfgDist["GENERAL"]["minMaxInterval"]
|
|
212
|
+
+ "$"
|
|
213
|
+
+ cfgDist["GENERAL"]["buildType"]
|
|
214
|
+
+ "$"
|
|
215
|
+
+ cfgDist["GENERAL"]["support"]
|
|
217
216
|
)
|
|
218
217
|
# if variation using percent
|
|
219
218
|
elif variationType.lower() == "percent":
|
|
@@ -225,9 +224,9 @@ def updateCfgRange(cfg, cfgProb, varName, varDict):
|
|
|
225
224
|
parValue = valVariation + "$" + valSteps
|
|
226
225
|
if "ci" in valVariation:
|
|
227
226
|
message = (
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
227
|
+
"Variation Type: range - variationValue is %s not a valid option - only \
|
|
228
|
+
scalar value allowed or consider variationType rangefromci"
|
|
229
|
+
% valVariation
|
|
231
230
|
)
|
|
232
231
|
log.error(message)
|
|
233
232
|
raise AssertionError(message)
|
|
@@ -236,9 +235,9 @@ def updateCfgRange(cfg, cfgProb, varName, varDict):
|
|
|
236
235
|
parValue = valVariation + "$" + valSteps
|
|
237
236
|
else:
|
|
238
237
|
message = (
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
238
|
+
"Variation Type: %s - not a valid option, options are: percent, range, \
|
|
239
|
+
normaldistribution, rangefromci"
|
|
240
|
+
% variationType
|
|
242
241
|
)
|
|
243
242
|
log.error(message)
|
|
244
243
|
raise AssertionError(message)
|
|
@@ -272,9 +271,9 @@ def updateCfgRange(cfg, cfgProb, varName, varDict):
|
|
|
272
271
|
valValues = np.linspace(float(valStart), float(valStop), int(valSteps))
|
|
273
272
|
else:
|
|
274
273
|
message = (
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
274
|
+
"Variation Type: %s - not a valid option, options are: percent, range, \
|
|
275
|
+
normaldistribution, rangefromci"
|
|
276
|
+
% variationType
|
|
278
277
|
)
|
|
279
278
|
log.error(message)
|
|
280
279
|
raise AssertionError(message)
|
|
@@ -616,8 +615,8 @@ def makeDictFromVars(cfg):
|
|
|
616
615
|
|
|
617
616
|
if (len(varParList) == len(varValues) == len(cfg[lengthsPar].split("|")) == len(varTypes)) is False:
|
|
618
617
|
message = (
|
|
619
|
-
|
|
620
|
-
|
|
618
|
+
"For every parameter in varParList a variationValue, %s and variationType needs to be provided"
|
|
619
|
+
% lengthsPar
|
|
621
620
|
)
|
|
622
621
|
log.error(message)
|
|
623
622
|
raise AssertionError(message)
|
|
@@ -801,13 +800,14 @@ def createSampleWithVariationStandardParameters(cfgProb, cfgStart, varParList, v
|
|
|
801
800
|
"values": sampleWBounds,
|
|
802
801
|
"typeList": cfgProb["PROBRUN"]["varParType"].split("|"),
|
|
803
802
|
"thFromIni": "",
|
|
803
|
+
"bounds": np.column_stack((lowerBounds, upperBounds)).tolist()
|
|
804
804
|
}
|
|
805
805
|
|
|
806
806
|
return paramValuesD
|
|
807
807
|
|
|
808
808
|
|
|
809
809
|
def createSampleWithVariationForThParameters(
|
|
810
|
-
|
|
810
|
+
avaDir, cfgProb, cfgStart, varParList, valVariationValue, varType, thReadFromShp
|
|
811
811
|
):
|
|
812
812
|
"""Create a sample of parameters for a desired parameter variation,
|
|
813
813
|
and fetch thickness values from shp file and perform variation for each feature within
|
|
@@ -907,23 +907,23 @@ def createSampleWithVariationForThParameters(
|
|
|
907
907
|
# set lower and upper bounds depending on varType (percent, range, rangefromci)
|
|
908
908
|
lowerBounds[fullVarType == "percent"] = varValList[fullVarType == "percent"] - varValList[
|
|
909
909
|
fullVarType == "percent"
|
|
910
|
-
|
|
910
|
+
] * (fullValVar[fullVarType == "percent"] / 100.0)
|
|
911
911
|
upperBounds[fullVarType == "percent"] = varValList[fullVarType == "percent"] + varValList[
|
|
912
912
|
fullVarType == "percent"
|
|
913
|
-
|
|
913
|
+
] * (fullValVar[fullVarType == "percent"] / 100.0)
|
|
914
914
|
|
|
915
915
|
lowerBounds[fullVarType == "range"] = (
|
|
916
|
-
|
|
916
|
+
varValList[fullVarType == "range"] - fullValVar[fullVarType == "range"]
|
|
917
917
|
)
|
|
918
918
|
upperBounds[fullVarType == "range"] = (
|
|
919
|
-
|
|
919
|
+
varValList[fullVarType == "range"] + fullValVar[fullVarType == "range"]
|
|
920
920
|
)
|
|
921
921
|
|
|
922
922
|
lowerBounds[fullVarType == "rangefromci"] = (
|
|
923
|
-
|
|
923
|
+
varValList[fullVarType == "rangefromci"] - ciValues[fullVarType == "rangefromci"]
|
|
924
924
|
)
|
|
925
925
|
upperBounds[fullVarType == "rangefromci"] = (
|
|
926
|
-
|
|
926
|
+
varValList[fullVarType == "rangefromci"] + ciValues[fullVarType == "rangefromci"]
|
|
927
927
|
)
|
|
928
928
|
|
|
929
929
|
# create a sample of parameter values using scipy latin hypercube or morris sampling
|
|
@@ -998,7 +998,7 @@ def createSample(cfgProb, varParList):
|
|
|
998
998
|
sample = morris.sample(
|
|
999
999
|
param_ranges,
|
|
1000
1000
|
N=nTrajectories, # number of trajectories
|
|
1001
|
-
num_levels=
|
|
1001
|
+
num_levels=cfgProb["PROBRUN"].getint("morrisNumLevels"), # how many discrete values per parameter
|
|
1002
1002
|
seed=sampleSeed,
|
|
1003
1003
|
)
|
|
1004
1004
|
|
|
@@ -1102,9 +1102,18 @@ def createCfgFiles(paramValuesDList, comMod, cfg, cfgPath=""):
|
|
|
1102
1102
|
cfgStart[section][par] = str(pVal[index])
|
|
1103
1103
|
else:
|
|
1104
1104
|
cfgStart["GENERAL"][par] = str(pVal[index])
|
|
1105
|
-
if modName.lower() in ["com1dfa", "com5snowslide", "com6rockavalanche"]:
|
|
1105
|
+
if modName.lower() in ["com1dfa", "com5snowslide", "com6rockavalanche", 'com8motpsa']:
|
|
1106
|
+
# Check if visualisation exists in cfgStart, if not add the section
|
|
1107
|
+
if not cfgStart.has_section("VISUALISATION"):
|
|
1108
|
+
cfgStart.add_section("VISUALISATION")
|
|
1109
|
+
|
|
1106
1110
|
cfgStart["VISUALISATION"]["scenario"] = str(count1)
|
|
1107
1111
|
cfgStart["INPUT"]["thFromIni"] = paramValuesD["thFromIni"]
|
|
1112
|
+
|
|
1113
|
+
# Safe read with fallback (no KeyError if PROBRUN or sampleMethod is missing)
|
|
1114
|
+
sample_method = cfg.get("PROBRUN", "sampleMethod", fallback="")
|
|
1115
|
+
cfgStart["VISUALISATION"]["sampleMethod"] = sample_method
|
|
1116
|
+
|
|
1108
1117
|
if "releaseScenario" in paramValuesD.keys():
|
|
1109
1118
|
cfgStart["INPUT"]["releaseScenario"] = paramValuesD["releaseScenario"]
|
|
1110
1119
|
cfgF = pathlib.Path(cfgPath, ("%d_%sCfg.ini" % (countS, modName)))
|
|
@@ -14,6 +14,10 @@ unit = kPa
|
|
|
14
14
|
peakLim = 1.0
|
|
15
15
|
# if only probability analysis is performed check for modName to locate peakFiles avaDir/Outputs/modName/peakFiles
|
|
16
16
|
modName = com1DFA
|
|
17
|
+
# If modName = com8MoTPSA, simulations can be executed in chunks.
|
|
18
|
+
# chunkSize defines how many simulations are processed per chunk (running simulations, postprocessing and cleaning the working directory incrementally).
|
|
19
|
+
# If left empty, the default chunk size used in the script is 10.
|
|
20
|
+
chunkSize =
|
|
17
21
|
|
|
18
22
|
|
|
19
23
|
[PROBRUN]
|
|
@@ -40,12 +44,15 @@ samplingStrategy = 1
|
|
|
40
44
|
# #++++++VARIATION INFO FOR DRAW SAMPLES FROM FULL SET OF VARIATIONS
|
|
41
45
|
# type of parameters that shall be varied -separated by | (options: float)
|
|
42
46
|
varParType = float|float
|
|
43
|
-
# factor used to create the number of samples, if morris number of samples depends on number of varied variables and number of trajectories, for now use nSample as number of trajectories
|
|
47
|
+
# factor used to create the number of samples, if morris: number of samples depends on number of varied variables and number of trajectories, for now use nSample as number of trajectories, n >=10 is suggested for morris sensitivity analysis
|
|
48
|
+
# for optimisation, the number of initial samples should scale with the number of varied parameters d, with n ~ 10*d as common rule of thumb
|
|
44
49
|
nSample = 40
|
|
45
50
|
# sample method used to create sample (options: latin, morris)
|
|
46
51
|
sampleMethod = latin
|
|
47
52
|
# seed for random generator
|
|
48
53
|
sampleSeed = 12345
|
|
54
|
+
# ONLY needed for morris sampling, defines how many values per parameter between lower and upper bound are considered
|
|
55
|
+
morrisNumLevels = 6
|
|
49
56
|
|
|
50
57
|
# Additional parameters for samplingStrategy == 2
|
|
51
58
|
# #++++++VARIATION INFO FOR ONE AT A TIME VARIATION
|
|
@@ -71,13 +78,13 @@ frictModel = samosAT
|
|
|
71
78
|
|
|
72
79
|
|
|
73
80
|
[com4FlowPy_com4FlowPy_override]
|
|
74
|
-
# use default
|
|
81
|
+
# use default com4FlowPy config as base configuration (True) and override following parameters
|
|
75
82
|
# if False and local is available use local
|
|
76
83
|
defaultConfig = True
|
|
77
84
|
|
|
78
85
|
|
|
79
86
|
[com8MoTPSA_com8MoTPSA_override]
|
|
80
|
-
# use default
|
|
87
|
+
# use default com8MoTPSA config as base configuration (True) and override following parameters
|
|
81
88
|
# if False and local is available use local
|
|
82
89
|
defaultConfig = True
|
|
83
90
|
|