Skip to content

refactor(postprocess): Improve pvOpenFOAMBase.writeCase (9 helpers)#792

Merged
yehudarav merged 1 commit into
masterfrom
issue641
Mar 31, 2026
Merged

refactor(postprocess): Improve pvOpenFOAMBase.writeCase (9 helpers)#792
yehudarav merged 1 commit into
masterfrom
issue641

Conversation

@yehudarav
Copy link
Copy Markdown
Collaborator

Summary

Improves the writeCase refactoring with 9 fine-grained helpers (was 3).

🤖 Generated with Claude Code

… (9 helpers)

Replaces the initial 3-helper refactoring with a more granular 9-helper
version that better separates concerns:

- _removeOldOutputs, _ensureOutputDirs — filesystem prep
- _resolveTimeList — timestep selection with latestTimestamp support
- _writeTimeStepBlocks — block-based streaming with memory control
- _collectTmpFiles — glob temp block files per filter
- _mergeToFinalOutput — dispatches to zarr or parquet path
- _mergeZarr, _mergeParquet — format-specific merge logic
- _atomicReplace — .final staging → rename
- _cleanupTmpFiles — remove temp blocks after merge

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@yehudarav yehudarav merged commit 86bb64e into master Mar 31, 2026
@yehudarav yehudarav deleted the issue641 branch March 31, 2026 19:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant