From 59f1d2391f3670c20773d0908c0c6ba3f73f0f8d Mon Sep 17 00:00:00 2001 From: Chris Lindholm Date: Sun, 15 Mar 2020 11:53:03 -0600 Subject: [PATCH] Make BinaryAdapter use Datum Fixes #11. --- src/main/scala/latis/input/BinaryAdapter.scala | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/scala/latis/input/BinaryAdapter.scala b/src/main/scala/latis/input/BinaryAdapter.scala index 17279f8..69d39f5 100644 --- a/src/main/scala/latis/input/BinaryAdapter.scala +++ b/src/main/scala/latis/input/BinaryAdapter.scala @@ -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} /** @@ -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 =>