Skip to content

Conversation

@fso42
Copy link
Contributor

@fso42 fso42 commented Aug 18, 2025

  • Particles are only exported if they are in resType or if trackParticles is True

For the compression:

Each module should implement a useCompression in their cfg IF they want to turn off compression in the case of tiff usage. (done for com1DFA)
By default compression is used!

@fso42 fso42 self-assigned this Aug 18, 2025
@fso42 fso42 added the enhancement New feature or request label Aug 18, 2025
@fso42 fso42 changed the title [com1] Add tiff compression; adjust particles export logic [com1;in2] Add tiff compression; adjust particles export logic Aug 18, 2025
@fso42 fso42 modified the milestones: Version 1.13, Version 1.14 Aug 18, 2025
@fso42 fso42 force-pushed the addTiffCompression branch from 9e40e5b to 78fb368 Compare September 2, 2025 14:56
@fso42 fso42 force-pushed the addTiffCompression branch from 00e61b1 to db4e5a6 Compare September 15, 2025 07:26
@fso42 fso42 force-pushed the addTiffCompression branch 2 times, most recently from 8802afa to f43f342 Compare November 14, 2025 21:46
@qltysh
Copy link
Contributor

qltysh bot commented Nov 14, 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)

@fso42 fso42 force-pushed the addTiffCompression branch from 9e949c1 to 225fea4 Compare November 14, 2025 23:01
@fso42 fso42 force-pushed the addTiffCompression branch from a3b9083 to eb6265b Compare November 18, 2025 13:40
@qltysh
Copy link
Contributor

qltysh bot commented Nov 18, 2025

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

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

File Coverage Changes
Path File Coverage Δ Indirect
avaframe/com1DFA/com1DFA.py -0.1
avaframe/com1DFA/com1DFATools.py -0.1
avaframe/com1DFA/deriveParameterSet.py 0.1
avaframe/in2Trans/rasterUtils.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 Author

fso42 commented Nov 18, 2025

Standardtests ident

refactor(rasterUtils, deriveParameterSet): simplify compression logic and reformat function call

- Updated compression logic in `writeResultToRaster` to initialize `extraKwargs` more clearly.

refactor(com1DFA): remove redundant raster output logic in `updateResCoeffFields`

refactor(com1DFA): simplify `updateResCoeffFields` function and remove unused parameters

- Removed unused `t` and `dem` parameters from `updateResCoeffFields` function to streamline its interface.
- Updated all references to `updateResCoeffFields` across `com1DFA` and related test files.

feat(rasterUtils): add optional compression parameter for raster writing

- Introduced `useCompression` parameter to `writeResultToRaster` for configurable compression of `GTiff` files.
- Defaulted the parameter to `True` for LZW compression

refactor(rasterUtils): simplify raster file writing logic and enforce driver validation; fixes #1163

- Added validation to ensure only supported drivers (`AAIGrid`, `GTiff`) are used.
- Utilized `with` statement to handle file writing safely and cleanly.

- Implemented LZW compression for `GTiff` raster outputs to optimize file size.
- Refactored file writing logic to support driver-specific configurations.

refactor(com1DFA): remove unnecessary blank line from configuration file

- Introduced `useCompression` parameter in `EXPORTS` config to enable LZW compression for raster outputs.
- Updated `writeResultToRaster` calls across modules to support optional compression.
- Adjusted tests and added relevant configuration for validation.

PROBLEM WITH updateResCoeffFields -> only cfg General is supplied, not Exports
@fso42 fso42 force-pushed the addTiffCompression branch from eb6265b to 5a75bbc Compare November 18, 2025 16:34
@fso42 fso42 merged commit 571df3e into master Nov 18, 2025
4 checks passed
@fso42 fso42 deleted the addTiffCompression branch November 18, 2025 16:47
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.

5 participants