From c495d9b16b09158725a86927b4b321f27f1dae19 Mon Sep 17 00:00:00 2001 From: Shawn Date: Tue, 14 Mar 2017 12:22:11 -0600 Subject: [PATCH] Named the "ds_name" attribute in CatalogGenerator's output dataset. --- src/main/scala/latis/reader/CatalogGenerator.scala | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/scala/latis/reader/CatalogGenerator.scala b/src/main/scala/latis/reader/CatalogGenerator.scala index c36bd513..7dfea8be 100644 --- a/src/main/scala/latis/reader/CatalogGenerator.scala +++ b/src/main/scala/latis/reader/CatalogGenerator.scala @@ -9,6 +9,7 @@ import latis.dm.Text import latis.ops.Operation import latis.util.FileUtils import latis.util.LatisProperties +import latis.metadata.Metadata class CatalogGenerator extends DatasetAccessor { @@ -49,14 +50,13 @@ class CatalogGenerator extends DatasetAccessor { /* * Convert a list of dataset names into - * a dataset of the form i -> dsname + * a dataset of the form i -> ds_name */ def generateCatalogDataset = { val samples = datasetNames.map(n => { - Sample(Index(), Text(n)) + Sample(Index(), Text(Metadata("ds_name"), n)) }) Dataset(Function(samples)) } - //TODO: Does this need apply/unapply? Or getUrl()? } \ No newline at end of file