Skip to content

Commit

Permalink
Release v1.1.2
Browse files Browse the repository at this point in the history
  • Loading branch information
anthonysena authored Dec 4, 2024
2 parents ae4e5df + a599bb6 commit c425fa4
Show file tree
Hide file tree
Showing 9 changed files with 22 additions and 2 deletions.
4 changes: 2 additions & 2 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
Package: Strategus
Type: Package
Title: Coordinate and Execute OHDSI HADES Modules
Version: 1.1.1
Date: 2024-12-03
Version: 1.1.2
Date: 2024-12-04
Authors@R: c(
person("Anthony", "Sena", email = "[email protected]", role = c("aut", "cre")),
person("Martijn", "Schuemie", email = "[email protected]", role = c("aut")),
Expand Down
4 changes: 4 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
Strategus 1.1.2
===============
- Add options for overriding number of threads for database operations (#190)

Strategus 1.1.1
===============
- Fixes R CMD note and updates documentation for inclusion into HADES
Expand Down
8 changes: 8 additions & 0 deletions R/Module-CohortMethod.R
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,14 @@ CohortMethodModule <- R6::R6Class(
jobContext <- private$jobContext
multiThreadingSettings <- CohortMethod::createDefaultMultiThreadingSettings(jobContext$moduleExecutionSettings$maxCores)

# Provide hook to allow for overriding the number of threads
# used for database operations
getDbCohortMethodDataThreads <- as.integer(getOption("strategus.CohortMethodModule.getDbCohortMethodDataThreads"))
if (isTRUE(getDbCohortMethodDataThreads > 0)) {
private$.message(paste0("Detected strategus.CohortMethodModule.getDbCohortMethodDataThreads - setting value to: ", getDbCohortMethodDataThreads))
multiThreadingSettings$getDbCohortMethodDataThreads <- getDbCohortMethodDataThreads
}

args <- jobContext$settings
args$connectionDetails <- connectionDetails
args$cdmDatabaseSchema <- jobContext$moduleExecutionSettings$cdmDatabaseSchema
Expand Down
8 changes: 8 additions & 0 deletions R/Module-SelfControlledCaseSeries.R
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,14 @@ SelfControlledCaseSeriesModule <- R6::R6Class(
jobContext <- private$jobContext
sccsMultiThreadingSettings <- SelfControlledCaseSeries::createDefaultSccsMultiThreadingSettings(jobContext$moduleExecutionSettings$maxCores)

# Provide hook to allow for overriding the number of threads
# used for database operations
getDbSccsDataThreads <- as.integer(getOption("strategus.SelfControlledCaseSeriesModule.getDbSccsDataThreads"))
if (isTRUE(getDbSccsDataThreads > 0)) {
private$.message(paste0("Detected strategus.SelfControlledCaseSeriesModule.getDbSccsDataThreads - setting value to: ", getDbSccsDataThreads))
sccsMultiThreadingSettings$getDbSccsDataThreads <- getDbSccsDataThreads
}

args <- jobContext$settings
args$connectionDetails <- connectionDetails
args$cdmDatabaseSchema <- jobContext$moduleExecutionSettings$cdmDatabaseSchema
Expand Down
Binary file modified extras/Strategus.pdf
Binary file not shown.
Binary file modified inst/doc/CreatingAnalysisSpecification.pdf
Binary file not shown.
Binary file modified inst/doc/ExecuteStrategus.pdf
Binary file not shown.
Binary file modified inst/doc/IntroductionToStrategus.pdf
Binary file not shown.
Binary file modified inst/doc/WorkingWithResults.pdf
Binary file not shown.

0 comments on commit c425fa4

Please sign in to comment.