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 from db4e5a6 to 87cc9a7 Compare November 14, 2025 13:19
- 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.
@fso42 fso42 force-pushed the addTiffCompression branch from 8802afa to f43f342 Compare November 14, 2025 21:46
@qltysh
Copy link
Contributor

qltysh bot commented Nov 14, 2025

❌ 4 blocking issues (4 total)

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

@qltysh one-click actions:

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

- 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 9e949c1 to 225fea4 Compare November 14, 2025 23:01
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.

2 participants