[com4FlowPy] minor Bugfix, documentation update and added feature for "forestFriciton", "forestDetrainment" and "forestFrictionLayer" model options#1071
Conversation
|
Hello @ahuber-bfw! Thanks for updating this PR.
Comment last updated at 2025-01-23 18:07:17 UTC |
PaulaSp3
left a comment
There was a problem hiding this comment.
Nice function.
I haven't tested it a lot, I recognized larger zDelta - values with a longer skipForestDist (when computing with forestFriction).
Co-authored-by: Paula Spannring <95042192+PaulaSp3@users.noreply.github.com>
Co-authored-by: Paula Spannring <95042192+PaulaSp3@users.noreply.github.com>
Co-authored-by: Paula Spannring <95042192+PaulaSp3@users.noreply.github.com>
Co-authored-by: Paula Spannring <95042192+PaulaSp3@users.noreply.github.com>
Co-authored-by: Paula Spannring <95042192+PaulaSp3@users.noreply.github.com>
Co-authored-by: Paula Spannring <95042192+PaulaSp3@users.noreply.github.com>
Co-authored-by: Paula Spannring <95042192+PaulaSp3@users.noreply.github.com>
Co-authored-by: Paula Spannring <95042192+PaulaSp3@users.noreply.github.com>
…ub.com/avaframe/AvaFrame into AH_com4FlowPy_improvForestFricitonDist
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #1071 +/- ##
==========================================
- Coverage 73.82% 73.56% -0.26%
==========================================
Files 66 67 +1
Lines 14916 15621 +705
==========================================
+ Hits 11012 11492 +480
- Misses 3904 4129 +225 ☔ View full report in Codecov by Sentry. |
author PaulaSp3 <paula.spannring@gmail.com> 1737114502 +0100 committer ahuber-bfw <andreas.huber@bfw.gv.at> 1739289947 +0100 parent a638226 author PaulaSp3 <paula.spannring@gmail.com> 1737114502 +0100 committer ahuber-bfw <andreas.huber@bfw.gv.at> 1739289880 +0100 parent a638226 author PaulaSp3 <paula.spannring@gmail.com> 1737114502 +0100 committer ahuber-bfw <andreas.huber@bfw.gv.at> 1739289804 +0100 parent a638226 author PaulaSp3 <paula.spannring@gmail.com> 1737114502 +0100 committer ahuber-bfw <andreas.huber@bfw.gv.at> 1739289200 +0100 parent a638226 author PaulaSp3 <paula.spannring@gmail.com> 1737114502 +0100 committer ahuber-bfw <andreas.huber@bfw.gv.at> 1739288900 +0100 zDeltaSum computed as sum of paths, for every path the max is computed in every cell remove setting label for contourline at collections update docu ana5Utils DFAPath optionally: move Automated path generation above Distance-Time Analysis Add gdal related dependencies. rasterio, geopandas, fiona - add basemap to plot; rename ascUtils to rasterUtils - start inclusion of geotiff; working commit, squash - add cropshape option in plotAll - add alr tif Add resampling using rasterio - rework new remesh to reproduce old remeshing - update reference remesh file for pytest test_geoTrans - remove unecessary code and test -> if raster is found with correct size, it already returns. There is no need for an overwrite then Update parts to .asc and .tif compatibility - Fixes deriveParameterSet pytests - make search for sim and comp file (standard test) tif compatible - add pytest-mock to runTestSinglePython.yml action - This commit also updates the Code Climate action to version 9.0.0. - add check if CRS is none if online background flag is true - error BREAKING CHANGES: Removed the `plotASCwithWmts` function and the `plotPeaksWithMap.py` file. This functionality is no longer required. Improve input file handling: adds 'raster' option to getAndCheckInputFiles add getInput pytests feat(in2Trans): readd ascUtils module (addGdalStuff) This commit readds the `ascUtils` module, which provides functionality for reading and writing ASCII grid files. All functions include deprecation warnings, directing users to the `rasterUtils` module for replacements. Upgrade twine and install pkginfo before upload update to com4FlowPy documentation fixed minor log BUG in runCom4.. + replaces nSkipForestCells with skipForestDist [m] creation of custom WorkDir - fixed Bug with logfile if workDir doesn't exit a priori minor re-write of forestFriction part of calc_z_delta() minor code clean-up code style fixed minor log BUG in runCom4.. + replaces nSkipForestCells with skipForestDist [m] Update docs/moduleCom4FlowPy.rst Co-authored-by: Paula Spannring <95042192+PaulaSp3@users.noreply.github.com> Update docs/moduleCom4FlowPy.rst Co-authored-by: Paula Spannring <95042192+PaulaSp3@users.noreply.github.com> Update avaframe/com4FlowPy/flowClass.py Co-authored-by: Paula Spannring <95042192+PaulaSp3@users.noreply.github.com> Apply suggestions from code review Co-authored-by: Paula Spannring <95042192+PaulaSp3@users.noreply.github.com> deleted note in moduleCom4FlowPy.rst documentation finle review suggestion fixed minor log BUG in runCom4.. + replaces nSkipForestCells with skipForestDist [m] creation of custom WorkDir - fixed Bug with logfile if workDir doesn't exit a priori minor code clean-up code style fixed minor log BUG in runCom4.. + replaces nSkipForestCells with skipForestDist [m] creation of custom WorkDir - fixed Bug with logfile if workDir doesn't exit a priori minor code clean-up code style Update docs/moduleCom4FlowPy.rst Co-authored-by: Paula Spannring <95042192+PaulaSp3@users.noreply.github.com> Update avaframe/com4FlowPy/flowClass.py Co-authored-by: Paula Spannring <95042192+PaulaSp3@users.noreply.github.com> deleted note in moduleCom4FlowPy.rst documentation finle review suggestion deleted 1 line in runCom4FlowPy.py
…' of https://github.com/avaframe/AvaFrame into AH_com4FlowPy_improvForestFricitonDist
|
Code Climate has analyzed commit 2769065 and detected 0 issues on this pull request. The test coverage on the diff in this pull request is 9.3% (50% is the threshold). This pull request will bring the total coverage in the repository to 69.2% (0.0% change). View more on Code Climate. |
|
Closed in favor of #1087 |
runCom4FlowPy.pythat caused an unhandled exception if theworkDirdid not exist a priori withuseCustomPathsoption set toTrueskipForestDist:skipForestDistallows the definition of a length [m] along the track (calculated in X,Y,Z and not in projected distances X,Y- to account for different track inclinations) that needs to be surpassed, before added forestFriction is modeled. This affects all forestFriction related code ifforestFriction,forestFrictionLayerorforestDetrainmentare selected.skipForestDist = 0the prior model behavior remains unchanged.