Skip to content

Commit

Permalink
Named the "ds_name" attribute in CatalogGenerator's output dataset.
Browse files Browse the repository at this point in the history
  • Loading branch information
sapols committed Mar 14, 2017
1 parent 4551e43 commit c495d9b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/main/scala/latis/reader/CatalogGenerator.scala
Original file line number Diff line number Diff line change
Expand Up @@ -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 {

Expand Down Expand Up @@ -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()?
}

0 comments on commit c495d9b

Please sign in to comment.