Skip to content

Commit

Permalink
featurecollection.py: Rename range to a_range to avoid redefining…
Browse files Browse the repository at this point in the history
… a reserved word

PiperOrigin-RevId: 636622364
  • Loading branch information
schwehr authored and Google Earth Engine Authors committed May 23, 2024
1 parent c1a78df commit 7519e7b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions python/ee/tests/featurecollection_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ def test_cluster(self):
self.assertEqual(expect, result)

def test_inverse_distance(self):
range = 2
a_range = 2
property_name = 'property name'
mean = 3
std_dev = 4
Expand All @@ -213,7 +213,7 @@ def test_inverse_distance(self):
expect = make_expression_graph({
'arguments': {
'collection': FEATURES_ONE,
'range': {'constantValue': range},
'range': {'constantValue': a_range},
'propertyName': {'constantValue': property_name},
'mean': {'constantValue': mean},
'stdDev': {'constantValue': std_dev},
Expand All @@ -228,13 +228,13 @@ def test_inverse_distance(self):
'functionName': 'FeatureCollection.inverseDistance',
})
expression = ee.FeatureCollection(ee.Feature(None)).inverseDistance(
range, property_name, mean, std_dev, gamma, reducer
a_range, property_name, mean, std_dev, gamma, reducer
)
result = json.loads(expression.serialize())
self.assertEqual(expect, result)

expression = ee.FeatureCollection(ee.Feature(None)).inverseDistance(
range=range,
range=a_range,
propertyName=property_name,
mean=mean,
stdDev=std_dev,
Expand Down

0 comments on commit 7519e7b

Please sign in to comment.