Skip to content

Commit

Permalink
Make BinaryAdapter use Datum
Browse files Browse the repository at this point in the history
Fixes #11.
  • Loading branch information
lindholc committed Mar 16, 2020
1 parent 4c1a2dd commit 8088fea
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/scala/latis/input/BinaryAdapter.scala
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import java.nio.{ByteBuffer, ByteOrder}

import cats.effect.IO
import fs2.Stream
import latis.data.{Data, Sample}
import latis.data.{Data, Datum, Sample}
import latis.model.{DataType, Function, Scalar}

/**
Expand Down Expand Up @@ -60,7 +60,7 @@ class BinaryAdapter(model: DataType) extends StreamingAdapter[Array[Byte]] {
/**
* Extracts the data values from the given record as a List.
*/
private def extractData(record: Array[Byte]): List[Data] = {
private def extractData(record: Array[Byte]): List[Datum] = {
val buffer = ByteBuffer.wrap(record).order(order)

model.getScalars.map { s =>
Expand Down

0 comments on commit 8088fea

Please sign in to comment.