Skip to content

Conversation

@dwolfsch
Copy link
Contributor

@dwolfsch dwolfsch commented Nov 11, 2024

@pep8speaks
Copy link

pep8speaks commented Nov 11, 2024

Hello @dwolfsch! Thanks for updating this PR.

Line 282:1: E302 expected 2 blank lines, found 1
Line 228:1: E302 expected 2 blank lines, found 1
Line 171:1: E302 expected 2 blank lines, found 1
Line 117:1: E302 expected 2 blank lines, found 1
Line 86:121: E501 line too long (124 > 120 characters)
Line 85:121: E501 line too long (125 > 120 characters)
Line 41:1: W293 blank line contains whitespace
Line 38:1: W293 blank line contains whitespace
Line 31:1: W293 blank line contains whitespace
Line 17:1: E302 expected 2 blank lines, found 1

Line 66:1: W391 blank line at end of file

Comment last updated at 2024-12-22 09:59:27 UTC

@fso42 fso42 self-assigned this Nov 13, 2024
@fso42 fso42 self-requested a review November 13, 2024 12:56
@fso42 fso42 added the enhancement New feature or request label Nov 13, 2024
Copy link
Contributor

@fso42 fso42 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @dwolfsch
Thank you for your PR.
I added the first round of review below, but it already looks good.
A general point:
A README or a section in the documentation would be perfect. This should explain the basic usage to make it easier for users what happens and what is needed to run this tool.
If you would rather not touch the documentation, use a README at first, we can then transfer this to the docs.

@fso42 fso42 changed the title com6RockAvalanche: add scarp.py, runCom6Scarp.py & scarpCfg.ini com6RockAvalanche: add scarp.py, runCom6Scarp.py & scarpCfg.ini [com6] Jan 29, 2025
@qltysh
Copy link
Contributor

qltysh bot commented Apr 7, 2025

❌ 2 blocking issues (2 total)

Tool Category Rule Count
black Style Incorrect formatting, autoformat by running qlty fmt. 2

@qltysh one-click actions:

  • Auto-fix formatting (qlty fmt && git push)

@qltysh
Copy link
Contributor

qltysh bot commented Apr 7, 2025

Diff Coverage: The code coverage on the diff in this pull request is 16.2%.

Total Coverage: This PR will decrease coverage by 0.67%.

File Coverage Changes
Path File Coverage Δ Indirect
avaframe/com6RockAvalanche/scarp.py 0.0
avaframe/in2Trans/shpConversion.py -1.5
🛟 Help
  • Diff Coverage: Coverage for added or modified lines of code (excludes deleted files). Learn more.

  • Total Coverage: Coverage for the whole repository, calculated as the sum of all File Coverage. Learn more.

  • File Coverage: Covered Lines divided by Covered Lines plus Missed Lines. (Excludes non-executable lines including blank lines and comments.)

    • Indirect Changes: Changes to File Coverage for files that were not modified in this PR. Learn more.

@fso42
Copy link
Contributor

fso42 commented Apr 7, 2025

Standardtests ok

@fso42
Copy link
Contributor

fso42 commented Apr 24, 2025

@dwolfsch : please have a look at my changes and the highlighted todos in the code

@qlty-cloud-legacy
Copy link

Code Climate has analyzed commit 52cf71d and detected 3 issues on this pull request.

Here's the issue category breakdown:

Category Count
Complexity 3

The test coverage on the diff in this pull request is 16.2% (50% is the threshold).

This pull request will bring the total coverage in the repository to 69.2% (-0.5% change).

View more on Code Climate.

  - Run file for com6RockAvalanche Scarp
  - Create scarpCfg.ini
  - Config-File for scarp.py
  - Create scarp.py
  - scarp.py creates scarps, that can be used as an Input for com6RockAvalanche
  - com6RockAvalanche: update scarp.py, runCom6Scarp.py & scarpCfg.ini, add readme
- Refactored `runCom6Scarp.py` to accept an input directory instead of a configuration file path.
- Added TODO comments for further improvements in `scarp.py`, `scarpCfg.ini`, and `runCom6Scarp.py` regarding default parameter handling and output file management.

feat(com6RockAvalanche): implement shapefile input for scarp

- Implement shapefile input for feature coordinates and perimeter.
- Remove raster input options for coordinates and perimeter.
- Adapt `scarp.py` to use new input method and updated config.
- Adjust `runCom6Scarp.py` to use refactored `scarp.py` functions.
- Remove obsolete output paths from config file.

docs(scarp): update SCARP documentation with detailed input/output info; remove codeclimate

- Add instructions for input files, including elevation DEM and shapefile
- Specify output files and their locations in the directory structure
- Include steps for preparing the configuration file for scarp calculations
- Clarify the usage of the script for running SCARP calculations

docs(moduleCom6RockAvalanche): update documentation for scarp calculation

refactor(docs): update output paths in moduleCom6RockAvalanche documentation

-
@fso42 fso42 merged commit 071e8af into master Jun 18, 2025
5 checks passed
@fso42 fso42 deleted the scarp branch June 18, 2025 09:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants