Skip to content

Implement writeRegion methods and update to n5 4.0.0-alpha-6 - #40

Closed
StephanPreibisch wants to merge 1 commit into
saalfeldlab:developmentfrom
StephanPreibisch:development
Closed

Implement writeRegion methods and update to n5 4.0.0-alpha-6#40
StephanPreibisch wants to merge 1 commit into
saalfeldlab:developmentfrom
StephanPreibisch:development

Conversation

@StephanPreibisch

Copy link
Copy Markdown
  • Update n5 dependency to 4.0.0-alpha-6 (from 4.0.0-alpha-4)
  • Implement missing writeRegion() methods required by n5 4.0.0-alpha-6 API
    • Sequential version (without ExecutorService)
    • Parallel version (with ExecutorService)
  • Implementation iterates through blocks in region and calls writeBlock()
  • HDF5 does not support sharding, so uses simple block iteration
  • Version changed to 2.3.0-alpha-4-fix

🤖 Generated with Claude Code

Hi @bogovicj, since it was not supported yet I asked Claude to add the missing functionality. It does work in my tests. You may not want to implement it this way, but I wanted to share anyways.

Best, Stephan

- Update n5 dependency to 4.0.0-alpha-6 (from 4.0.0-alpha-4)
- Implement missing writeRegion() methods required by n5 4.0.0-alpha-6 API
  - Sequential version (without ExecutorService)
  - Parallel version (with ExecutorService)
- Implementation iterates through blocks in region and calls writeBlock()
- HDF5 does not support sharding, so uses simple block iteration
- Version changed to 2.3.0-alpha-4-fix

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
@tpietzsch

Copy link
Copy Markdown
Contributor

This is handled now by a default implementation in N5Writer. saalfeldlab/n5#198

@bogovicj bogovicj closed this Jan 27, 2026
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.

3 participants