Skip to content

Commit

Permalink
update setsimulation path no more check .h5
Browse files Browse the repository at this point in the history
  • Loading branch information
berthetclement committed Jun 27, 2024
1 parent 20f882b commit 7cad99c
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions R/setSimulationPath.R
Original file line number Diff line number Diff line change
Expand Up @@ -277,15 +277,15 @@ setSimulationPath <- function(path, simulation = NULL) {
# - 3. asks the user to interactively choose one simulation

if (!file.exists(file.path(path, "study.antares"))){
allFiles <- list.files(path)
avaliableFile <- allFiles[grep(".h5$", allFiles)]
if(length(avaliableFile) == 0)
{
# allFiles <- list.files(path)
# avaliableFile <- allFiles[grep(".h5$", allFiles)]
# if(length(avaliableFile) == 0)
# {
stop("Directory is not an Antares study.")
}else{
##H5 mode
return("H5")
}
# }else{
# ##H5 mode
# return("H5")
# }
}


Expand Down

0 comments on commit 7cad99c

Please sign in to comment.