Skip to content

Commit

Permalink
Implementing requested changes.
Browse files Browse the repository at this point in the history
  • Loading branch information
staudtMarius committed Aug 21, 2024
1 parent 5090bf0 commit 785d287
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 4 deletions.
9 changes: 6 additions & 3 deletions input/config/localFileSourceConfig.conf
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,12 @@ io {
directoryHierarchy = false
}

targetFolder = "convertedData/grids"
targetFolder = "convertedData/local/"
compress = false
}

simbenchCodes = []

# code for local files
simbenchCodes = [
"1-LV-rural1--0-no_sw"
]
}
Binary file added input/local/1-LV-rural1--0-no_sw.zip
Binary file not shown.
4 changes: 4 additions & 0 deletions src/main/scala/edu/ie3/simbench/config/ConfigValidator.scala
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,10 @@ case object ConfigValidator {
*/
@throws[CodeValidationException]
private def checkSimbenchCodes(codes: List[java.lang.String]): Unit = {
if (codes.isEmpty) {
throw new SimbenchConfigException(s"No simbench codes were provided!")
}

for (code <- codes) {
SimbenchCode.isValid(code) match {
case Success(_) =>
Expand Down
2 changes: 1 addition & 1 deletion src/main/scala/edu/ie3/simbench/main/SimbenchHelper.scala
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ trait SimbenchHelper extends LazyLogging {
* @param simbenchCode
* for the folder name
* @param simbenchConfig
* config
* config that specifies the output path
* @return
* a file sink and the baseTargetDirectory
*/
Expand Down

0 comments on commit 785d287

Please sign in to comment.