From 7f58e1b050e079ae165a774255fbda2cf41d503f Mon Sep 17 00:00:00 2001 From: Kurt Schwehr Date: Mon, 3 Jun 2024 15:43:02 -0700 Subject: [PATCH] image.py: Minor linting PiperOrigin-RevId: 639935971 --- python/ee/image.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/python/ee/image.py b/python/ee/image.py index f26c36558..fc568764a 100644 --- a/python/ee/image.py +++ b/python/ee/image.py @@ -776,7 +776,7 @@ def add(self, image2: _ImageType) -> Image: def addBands( self, - srcImg: _ImageType, + srcImg: _ImageType, # pylint: disable=invalid-name names: Optional[_ListType] = None, overwrite: Optional[_EeBoolType] = None, ) -> Image: @@ -852,7 +852,7 @@ def arrayAccum( ) def arrayArgmax(self) -> Image: - """Computes the positional indices of the maximum value of array values. + """Returns the positional indices of the maximum value of array values. If there are multiple occurrences of the maximum, the indices reflect the first. @@ -885,6 +885,7 @@ def arrayDimensions(self) -> Image: """ return apifunction.ApiFunction.call_(self.name() + '.arrayDimensions', self) + def arrayDotProduct(self, image2: _ImageType) -> Image: """Computes the dot product. @@ -904,7 +905,7 @@ def arrayDotProduct(self, image2: _ImageType) -> Image: def arrayFlatten( self, - coordinateLabels: _ListType, + coordinateLabels: _ListType, # pylint: disable=invalid-name separator: Optional[_StringType] = None, ) -> Image: """Returns an image of scalar pixels with one band per element of the array. @@ -1030,7 +1031,7 @@ def arrayReduce( self, reducer: _EeAnyType, axes: _EeAnyType, - fieldAxis: Optional[_IntegerType] = None, + fieldAxis: Optional[_IntegerType] = None, # pylint: disable=invalid-name ) -> Image: """Reduces elements of each array pixel.