Skip to content

Commit 9b2f8c2

Browse files
committed
Small tweaks.
Signed-off-by: Jason T. Brown <jason@astraea.earth>
1 parent b2774c4 commit 9b2f8c2

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

core/src/main/scala/astraea/spark/rasterframes/RasterFunctions.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -334,6 +334,6 @@ trait RasterFunctions {
334334

335335
/** Natural logarithm of one plus cell values. */
336336
def log1p(tileCol: Column): TypedColumn[Any, Tile] =
337-
Log(local_add(tileCol, 1.))
337+
Log(local_add(tileCol, 1.0))
338338

339339
}

core/src/main/scala/astraea/spark/rasterframes/expressions/UnaryLocalRasterOp.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ import org.apache.spark.sql.catalyst.expressions.UnaryExpression
3131
import org.apache.spark.sql.rf.TileUDT
3232
import org.apache.spark.sql.types.DataType
3333

34-
/** Operation combining two tiles or a tile and a scalar into a new tile. */
34+
/** Operation on a tile returning a tile. */
3535
trait UnaryLocalRasterOp extends UnaryExpression with LazyLogging {
3636

3737
override def dataType: DataType = child.dataType

0 commit comments

Comments
 (0)