Skip to content

Commit

Permalink
remove if-else block and print statement
Browse files Browse the repository at this point in the history
  • Loading branch information
furqaankhan committed Dec 8, 2023
1 parent c4f5761 commit c9dd1ce
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -63,10 +63,7 @@ class RS_Union_Aggr extends Aggregator[(GridCoverage2D, Int), ArrayBuffer[BandDa
val widthNewRaster = RasterAccessors.getWidth(raster)
val heightNewRaster = RasterAccessors.getHeight(raster)

if (width == widthNewRaster && height == heightNewRaster)
true
else
false
width == widthNewRaster && height == heightNewRaster
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -890,8 +890,6 @@ class rasteralgebraTest extends TestBaseScala with BeforeAndAfter with GivenWhen

df = df.selectExpr("RS_Union_aggr(raster, index) as rasters")

println(df.show(10, 50))

val actualBands = df.selectExpr("RS_NumBands(rasters)").first().get(0)
val expectedBands = 4
assertEquals(expectedBands, actualBands)
Expand Down

0 comments on commit c9dd1ce

Please sign in to comment.