Skip to content

Commit

Permalink
Merge pull request #2178 from LBNL-UCB-STI/inm/#2059-allow-pointing-t…
Browse files Browse the repository at this point in the history
…o-s3-folder-for-urbansim-input-fix

removed slash from path constructor in UrbanSimScenarioSource
  • Loading branch information
wrashid authored Sep 19, 2019
2 parents 2fdb82f + 7ab721e commit ad17ad1
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,12 @@ class UrbanSimScenarioSource(
with ExponentialLazyLogging {
val fileExt: String = rdr.inputType.toFileExt

val buildingFilePath: String = FileUtils.downloadAndUnpackIfNeeded(s"$scenarioSrc/buildings.$fileExt")
val personFilePath: String = FileUtils.downloadAndUnpackIfNeeded(s"$scenarioSrc/persons.$fileExt")
val householdFilePath: String = FileUtils.downloadAndUnpackIfNeeded(s"$scenarioSrc/households.$fileExt")
val planFilePath: String = FileUtils.downloadAndUnpackIfNeeded(s"$scenarioSrc/plans.$fileExt")
val unitFilePath: String = FileUtils.downloadAndUnpackIfNeeded(s"$scenarioSrc/units.$fileExt")
val parcelAttrFilePath: String = FileUtils.downloadAndUnpackIfNeeded(s"$scenarioSrc/parcels.$fileExt")
val buildingFilePath: String = FileUtils.downloadAndUnpackIfNeeded(s"${scenarioSrc}buildings.$fileExt")
val personFilePath: String = FileUtils.downloadAndUnpackIfNeeded(s"${scenarioSrc}persons.$fileExt")
val householdFilePath: String = FileUtils.downloadAndUnpackIfNeeded(s"${scenarioSrc}households.$fileExt")
val planFilePath: String = FileUtils.downloadAndUnpackIfNeeded(s"${scenarioSrc}plans.$fileExt")
val unitFilePath: String = FileUtils.downloadAndUnpackIfNeeded(s"${scenarioSrc}units.$fileExt")
val parcelAttrFilePath: String = FileUtils.downloadAndUnpackIfNeeded(s"${scenarioSrc}parcels.$fileExt")

override def getPersons: Iterable[PersonInfo] = {
rdr.readPersonsFile(personFilePath).map { person: DataExchange.PersonInfo =>
Expand Down

0 comments on commit ad17ad1

Please sign in to comment.