@@ -1424,25 +1424,6 @@ def validation(request, context):
1424
1424
assert m .call_count == 1
1425
1425
1426
1426
1427
- def test_pipe_with_args (con100 ):
1428
- def ndvi_scaled (cube , in_max = 2 , out_max = 3 ):
1429
- return cube .ndvi ().linear_scale_range (0 , in_max , 0 , out_max )
1430
-
1431
- s2cube = con100 .load_collection ("S2" )
1432
- im = s2cube .pipe (ndvi_scaled )
1433
- assert im .flat_graph ()["apply1" ]["arguments" ]["process" ]["process_graph" ]["linearscalerange1" ]["arguments" ] == {
1434
- 'inputMax' : 2 , 'inputMin' : 0 , 'outputMax' : 3 , 'outputMin' : 0 , 'x' : {'from_parameter' : 'x' }
1435
- }
1436
- im = s2cube .pipe (ndvi_scaled , 4 , 5 )
1437
- assert im .flat_graph ()["apply1" ]["arguments" ]["process" ]["process_graph" ]["linearscalerange1" ]["arguments" ] == {
1438
- 'inputMax' : 4 , 'inputMin' : 0 , 'outputMax' : 5 , 'outputMin' : 0 , 'x' : {'from_parameter' : 'x' }
1439
- }
1440
- im = s2cube .pipe (ndvi_scaled , out_max = 7 )
1441
- assert im .flat_graph ()["apply1" ]["arguments" ]["process" ]["process_graph" ]["linearscalerange1" ]["arguments" ] == {
1442
- 'inputMax' : 2 , 'inputMin' : 0 , 'outputMax' : 7 , 'outputMin' : 0 , 'x' : {'from_parameter' : 'x' }
1443
- }
1444
-
1445
-
1446
1427
def test_flatten_dimensions (con100 ):
1447
1428
s2 = con100 .load_collection ("S2" )
1448
1429
cube = s2 .flatten_dimensions (dimensions = ["t" , "bands" ], target_dimension = "features" )
0 commit comments