Skip to content

[com8/9; com1]: ensure forest effects handle remeshing correctly - #1329

Merged
fso42 merged 3 commits into
masterfrom
cleanMOTResRemesh
Aug 25, 2026
Merged

[com8/9; com1]: ensure forest effects handle remeshing correctly#1329
fso42 merged 3 commits into
masterfrom
cleanMOTResRemesh

Conversation

@fso42

@fso42 fso42 commented Aug 17, 2026

Copy link
Copy Markdown
Contributor
  • Updated logic in MoTUtils.py to disable forest effects for non-res simulations.

PR Checklist

Please confirm before requesting review:

  • I ran pytest locally without fails
  • I added/updated tests where needed
  • I updated documentation where needed

Confirm before the final merge/rebase into master

  • Commits are sensibly squashed and rebased onto latest master
  • Standardtest run without difference (with recompiled cython code)

@fso42
fso42 requested a review from awirb August 17, 2026 15:28
@fso42 fso42 self-assigned this Aug 17, 2026
@fso42 fso42 added the bugfix label Aug 17, 2026
@qltysh

qltysh Bot commented Aug 17, 2026

Copy link
Copy Markdown
Contributor

All good ✅

Comment thread avaframe/com1DFA/com1DFA.py Outdated
@qltysh

qltysh Bot commented Aug 18, 2026

Copy link
Copy Markdown
Contributor

Qlty


Coverage Impact

⬆️ Merging this pull request will increase total coverage on master by 0.6%.

Modified Components (1)

RatingComponent% Diff
Coverage rating: C Coverage rating: C
com1DFA100.0%

Modified Files with Diff Coverage (3)

RatingFile% DiffUncovered Line #s
Coverage rating: B Coverage rating: B
avaframe/com1DFA/com1DFA.py100.0%
Coverage rating: F Coverage rating: D
avaframe/com8MoTPSA/com8MoTPSA.py100.0%
Coverage rating: A Coverage rating: A
avaframe/in3Utils/MoTUtils.py100.0%
Total100.0%
🚦 See full report on Qlty Cloud »

🛟 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.

…im types correctly

- Updated logic in `MoTUtils.py` to disable forest effects for non-res simulations.
@fso42
fso42 force-pushed the cleanMOTResRemesh branch from b5c45e8 to b308db3 Compare August 24, 2026 08:41
Comment thread avaframe/com1DFA/com1DFA.py Outdated
Comment thread avaframe/tests/test_com8MoTPSA.py
Comment thread avaframe/tests/test_com8MoTPSA.py
Comment thread avaframe/tests/test_com8MoTPSA.py
…y in simulations

- Updated `MoTUtils` to enable forest effects when remeshed forest density and tree diameter files are found.
- Adjusted `com8MoTPSA` and `com1DFA` to handle forest effects with "auto" setting only.
- Removed outdated logic for non-auto forest effect configurations.
- Updated tests to verify correct forest density file usage and handling of "auto" mode.

test(com8MoTPSA): add unit tests for postprocess layer renaming and entrainment sim types

test(com1DFA, com8MoTPSA): add unit tests for forest effects in simulations

- Added tests for `prepareVarSimDict` in `com1DFA` to verify forest block remeshing and path settings for bhd/res.
- Introduced preprocess tests in `com8MoTPSA` to validate forest effects with "auto" and non-auto settings.

fix(com1DFA): remove redundant file existence checks for `entFile` and `resFile` in config settings
@fso42
fso42 force-pushed the cleanMOTResRemesh branch from 0a20993 to 10a3f52 Compare August 25, 2026 12:43
@fso42
fso42 merged commit 27b433f into master Aug 25, 2026
5 of 7 checks passed
@fso42
fso42 deleted the cleanMOTResRemesh branch August 25, 2026 15:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants