[com4FlowPy] faster backTracking, previewMode and minor improvs#1138
Conversation
❌ 4 blocking issues (8 total)
@qltysh one-click actions:
|
|
Diff Coverage: The code coverage on the diff in this pull request is 35.2%. Total Coverage: Unable to calculate total coverage change because base branch coverage was not found. File Coverage Changes
🛟 Help
|
PaulaSp3
left a comment
There was a problem hiding this comment.
Very cool features! :) I have a few suggestions. IMO the code would be easier to understand when variables like 'values' and 'node' are renamed to e.g., 'infraValues' and 'parentNode'/ 'childNode'.
'preview-mode' prototype for sped-up version of back-tracking functionality and implementation of previewMode (previously implicitly used in back-tracking) fixed runtime Bug if infraBool=False, that was introduced with prior commit previewMode log Message added 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] creation of custom WorkDir - fixed Bug with logfile if workDir doesn't exit a priori minor code clean-up 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 New implementation of back-tracking routine and indtroduction of 'preview-mode' prototype for sped-up version of back-tracking functionality and implementation of previewMode (previously implicitly used in back-tracking) fixed runtime Bug if infraBool=False, that was introduced with prior commit previewMode log Message added prototype for sped-up version of back-tracking functionality and implementation of previewMode (previously implicitly used in back-tracking) fixed runtime Bug if infraBool=False, that was introduced with prior commit previewMode log Message added added doc-strings to back-tracking functions added documentation for back-tracking in flowCore.py updated code comments in flowCore added tests, deleted deprecated backCalculation function added *.py[cod] and *.aux.xml to .gitignore updated data/avaFlowPy renamed dem in avaFlowPy updated doc and minor changes to flowCore.py changed one occurence of 'not in'
incorporated review suggestions P.S. minor change to nested funciton in calculation() removed unused imports in tests/tests_com4FlowPy
44c34d1 to
f36e793
Compare
main features:
A jupyter notebook on how the "back-tracking" works in principle can be found in:
https://github.com/OpenNHM/DevTestNotebooks/tree/AH_com4FlowPyBacktracking/com4FlowPyBacktracking
minor changes:
*.py[cod]and*.aux.xmlfiles)/data/avaFlowPyfixes issue #1076