Skip to content

Commit

Permalink
fix/typing(layer_set): Allow layer set read_proc to return single layer
Browse files Browse the repository at this point in the history
  • Loading branch information
nkemnitz committed Aug 30, 2024
1 parent d2834b2 commit 974ea6b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion zetta_utils/layer/volumetric/layer_set/layer.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ class VolumetricLayerSet(
read_procs: tuple[VolumetricSetDataProcT, ...] = ()
write_procs: tuple[VolumetricSetDataWriteProcT, ...] = ()

def __getitem__(self, idx: UserVolumetricIndex) -> dict[str, npt.NDArray]:
def __getitem__(self, idx: UserVolumetricIndex) -> dict[str, npt.NDArray] | npt.NDArray:
idx_backend = self.frontend.convert_idx(idx)
return self.read_with_procs(idx=idx_backend)

Expand Down

0 comments on commit 974ea6b

Please sign in to comment.