Skip to content

Commit

Permalink
Only replace covariate settings when executing on a CDM
Browse files Browse the repository at this point in the history
  • Loading branch information
anthonysena committed Nov 13, 2024
1 parent 946f1ac commit b4772a8
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions R/StrategusModule.R
Original file line number Diff line number Diff line change
Expand Up @@ -160,11 +160,14 @@ StrategusModule <- R6::R6Class(
private$jobContext$settings <- moduleSpecification$settings

# Make sure that the covariate settings for the analysis are updated
# to reflect the location of the cohort tables
private$jobContext$settings <- .replaceCovariateSettings(
moduleSettings = private$jobContext$settings,
executionSettings = executionSettings
)
# to reflect the location of the cohort tables if we are executing
# on a CDM.
if (inherits(executionSettings, "CdmExecutionSettings")) {
private$jobContext$settings <- .replaceCovariateSettings(
moduleSettings = private$jobContext$settings,
executionSettings = executionSettings
)
}

# Assemble the job context from the analysis specification
# for the given module.
Expand Down

0 comments on commit b4772a8

Please sign in to comment.