Skip to content

Commit

Permalink
Release v1.1.0 preparation
Browse files Browse the repository at this point in the history
  • Loading branch information
anthonysena committed Nov 26, 2024
1 parent cbefb1b commit d862b1c
Show file tree
Hide file tree
Showing 9 changed files with 13 additions and 10 deletions.
6 changes: 6 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
Strategus 1.1.0
===============
- Inject cohort schema and table into `createCohortBasedCovariateSettings` (#181)
- Provide hook to optimize cohort SQL construction (#179)
- Fixes broken links in R6 class documentation (#183)

Strategus 1.0.0
===============

Expand Down
7 changes: 3 additions & 4 deletions R/Module-PatientLevelPrediction.R
Original file line number Diff line number Diff line change
Expand Up @@ -156,10 +156,9 @@ PatientLevelPredictionModule <- R6::R6Class(
}
),
private = list(
.setCovariateSchemaTable = function(
modelDesignList,
cohortDatabaseSchema,
cohortTable) {
.setCovariateSchemaTable = function(modelDesignList,
cohortDatabaseSchema,
cohortTable) {
if (inherits(modelDesignList, "modelDesign")) {
modelDesignList <- list(modelDesignList)
}
Expand Down
6 changes: 2 additions & 4 deletions R/StrategusModule.R
Original file line number Diff line number Diff line change
Expand Up @@ -334,8 +334,8 @@ StrategusModule <- R6::R6Class(
if (inherits(s, "covariateSettings") && "fun" %in% names(attributes(s))) {
if (attr(s, "fun") == "getDbCohortBasedCovariatesData") {
# Set the covariateCohortDatabaseSchema & covariateCohortTable values
s$covariateCohortDatabaseSchema = executionSettings$workDatabaseSchema
s$covariateCohortTable = executionSettings$cohortTableNames$cohortTable
s$covariateCohortDatabaseSchema <- executionSettings$workDatabaseSchema
s$covariateCohortTable <- executionSettings$cohortTableNames$cohortTable
}
}
return(s)
Expand Down Expand Up @@ -379,5 +379,3 @@ StrategusModule <- R6::R6Class(
# Call the helper function on the input list
return(replaceHelper(moduleSettings))
}


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.
4 changes: 2 additions & 2 deletions tests/testthat/test-Settings.R
Original file line number Diff line number Diff line change
Expand Up @@ -453,8 +453,8 @@ test_that("Test internal function for modifying covariate settings", {

testReplacedModuleSettings <- .replaceCovariateSettings(moduleSettings, executionSettings)
# For visual inspection
#ParallelLogger::saveSettingsToJson(moduleSettings, "before_unit_test.json")
#ParallelLogger::saveSettingsToJson(testReplacedModuleSettings, "after_unit_test.json")
# ParallelLogger::saveSettingsToJson(moduleSettings, "before_unit_test.json")
# ParallelLogger::saveSettingsToJson(testReplacedModuleSettings, "after_unit_test.json")
expect_equal(testReplacedModuleSettings$analysis$something[[1]]$covariateCohortDatabaseSchema, NULL)
expect_equal(testReplacedModuleSettings$analysis$something[[1]]$covariateCohortTable, NULL)
expect_equal(testReplacedModuleSettings$analysis$something[[2]]$covariateCohortDatabaseSchema, workDatabaseSchema)
Expand Down

0 comments on commit d862b1c

Please sign in to comment.