Skip to content

Commit 4111dad

Browse files
committed
renamed slice_obj -> slice_item
1 parent 5cbcb7d commit 4111dad

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

zappend/processor.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -69,11 +69,11 @@ def process_slices(self, slices: Iterable[SliceObj]):
6969
slices: Slice objects.
7070
"""
7171
with self._profiler:
72-
for slice_index, slice_obj in enumerate(slices):
73-
self.process_slice(slice_obj, slice_index=slice_index)
72+
for slice_index, slice_item in enumerate(slices):
73+
self.process_slice(slice_item, slice_index=slice_index)
7474

75-
def process_slice(self, slice_obj: SliceObj, slice_index: int = 0):
76-
"""Process a single slice object *slice_obj*.
75+
def process_slice(self, slice_item: SliceObj, slice_index: int = 0):
76+
"""Process a single slice object *slice_item*.
7777
7878
A slice object is
7979
either a `str`, `xarray.Dataset`, `SliceSource`` or a factory
@@ -99,13 +99,13 @@ def process_slice(self, slice_obj: SliceObj, slice_index: int = 0):
9999
* update target from slice
100100
101101
Args:
102-
slice_obj: The slice object.
102+
slice_item: The slice object.
103103
slice_index: An index identifying the slice.
104104
"""
105105

106106
ctx = Context(self._config)
107107

108-
with open_slice_source(ctx, slice_obj, slice_index) as slice_dataset:
108+
with open_slice_source(ctx, slice_item, slice_index) as slice_dataset:
109109
slice_metadata = ctx.get_dataset_metadata(slice_dataset)
110110
if ctx.target_metadata is None:
111111
ctx.target_metadata = slice_metadata

0 commit comments

Comments
 (0)