Skip to content

Commit ad9b7f9

Browse files
committed
apply black
1 parent 2ccb3bb commit ad9b7f9

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

reproject/mosaicking/subset_array.py

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,11 @@ def __repr__(self):
3434
@property
3535
def view_in_original_array(self):
3636
if self.kmin is not None:
37-
return (slice(self.kmin, self.kmax), slice(self.jmin, self.jmax), slice(self.imin, self.imax))
37+
return (
38+
slice(self.kmin, self.kmax),
39+
slice(self.jmin, self.jmax),
40+
slice(self.imin, self.imax),
41+
)
3842
else:
3943
return (slice(self.jmin, self.jmax), slice(self.imin, self.imax))
4044

@@ -96,21 +100,17 @@ def _operation(self, other, op):
96100
# Extract cutout from each
97101

98102
self_array = self.array[
99-
jmin - self.jmin : jmax - self.jmin,
100-
imin - self.imin : imax - self.imin,
103+
jmin - self.jmin : jmax - self.jmin, imin - self.imin : imax - self.imin
101104
]
102105
self_footprint = self.footprint[
103-
jmin - self.jmin : jmax - self.jmin,
104-
imin - self.imin : imax - self.imin,
106+
jmin - self.jmin : jmax - self.jmin, imin - self.imin : imax - self.imin
105107
]
106108

107109
other_array = other.array[
108-
jmin - other.jmin : jmax - other.jmin,
109-
imin - other.imin : imax - other.imin,
110+
jmin - other.jmin : jmax - other.jmin, imin - other.imin : imax - other.imin
110111
]
111112
other_footprint = other.footprint[
112-
jmin - other.jmin : jmax - other.jmin,
113-
imin - other.imin : imax - other.imin,
113+
jmin - other.jmin : jmax - other.jmin, imin - other.imin : imax - other.imin
114114
]
115115

116116
# Carry out operator and store result in ReprojectedArraySubset

0 commit comments

Comments
 (0)