Skip to content

Commit

Permalink
use jobcontext even if it's null (then the model is used)
Browse files Browse the repository at this point in the history
  • Loading branch information
egillax committed Jul 31, 2024
1 parent 397b353 commit e8df49e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Main.R
Original file line number Diff line number Diff line change
Expand Up @@ -151,9 +151,9 @@ execute <- function(jobContext) {
design <- PatientLevelPrediction::createValidationDesign(
targetId = df$target_id[1],
outcomeId = df$outcome_id[1],
plpModelList = as.list(df$modelPath),
restrictPlpDataSettings = ifelse(!is.null(jobContext$settings[[1]]$restrictPlpDataSettings), jobContext$settings[[1]]$restrictPlpDataSettings, NULL),
populationSettings = ifelse(!is.null(jobContext$settings[[1]]$populationSettings), jobContext$settings[[1]]$populationSettings, NULL)
plpModelList = as.list(df$modelPath)
restrictPlpDataSettings = jobContext$settings[[1]]$restrictPlpDataSettings,
populationSettings = jobContext$settings[[1]]$populationSettings)
)
designs[[i]] <- design
}
Expand Down

0 comments on commit e8df49e

Please sign in to comment.