Version: dev

region_not_shard_aligned

Stable type · Errors

Tier: stable · Kind: type · Topic: Errors

PythonJuliaRust
RegionNotShardAlignedRegionNotShardAlignednot exported

Python

class RegionNotShardAligned(EarthSciIOError, ValueError)

A writer region violates the alignment rule of spec/writer.md §4.

For every region dim d: 0 <= start < stop <= len(d), start % shard[d] == 0 and stop % shard[d] == 0 or stop == len(d). Raised at open / join / resume, before any write, so every shard object of a partitioned array is owned by exactly one writer.

Source

Julia

struct RegionNotShardAligned <: Exception
RegionNotShardAligned(msg::String)
RegionNotShardAligned(msg)
RegionNotShardAligned(msg)

A writer’s region (spec/writer.md §4) does not start on a shard boundary, does not stop on one (or at the array end), or is out of bounds. Raised by [write_open!]/[write_resume] before any I/O.

Source

Rust

Rust does not export this type.