-
Notifications
You must be signed in to change notification settings - Fork 0
[c2]: Add module c2TopRunDF #52
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
❌ 3 blocking issues (5 total)
@qltysh one-click actions:
|
| area += 1 | ||
| else: | ||
| mcs += 1 | ||
| position = [row, col] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
|
|
||
| plotter = HillshadePlotter() | ||
|
|
||
| # Generate the plot |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
|
Coverage Impact This PR will not change total coverage. Modified Files with Diff Coverage (1)
🛟 Help
|
| @@ -0,0 +1,231 @@ | |||
| """ | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| import configparser | ||
| import pathlib | ||
| import shutil | ||
| import pytest |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.

runC2TopRunDF.pyexecutes pyTopRunDF for one scenario.The file
TopRunDF.pyis modified,batch_select_process.pyis not used here (since a run of multiple scenarios is not enabled yet), the other files are directly used from the pyTopRunDF repository. The pyTopRunDF repository is integrated via a submodule intoc2TopRunDF/pyTopRunDF, from where the original scripts are executed.The modification of
TopRunDF.pyenables more consistency with the AvaFrame/DebrisFrame configuration and input handling:c2TopRunDFCfg.inifile instead of a.jsonfile (including a different location!)avalanchedir/Inputs, theavalanchediris defined indebrisframe.ini(orlocal_debrisframe.ini) instead ofScenarios/Scenario_{num}avalanchedir/Outputsinstead ofOutputs/Scenario_{num}Adding a global seed to the random functions yields the same result as that computed with the original code (with the same seed) for
Scenario_1(in pyTopRunDF repository.