Skip to content

Commit

Permalink
chore(DiseasyActivity): fix lints
Browse files Browse the repository at this point in the history
  • Loading branch information
RasmusSkytte committed Dec 20, 2023
1 parent b0b3a3a commit b13a84f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions R/DiseasyActivity.R
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,7 @@ DiseasyActivity <- R6::R6Class(
digest::digest()
attr(private$.scenario_matrix, "secret_hash") <- active_activity_units_hash

},
},

#' @description
#' Sets the overall risk of types of activity
Expand Down Expand Up @@ -384,7 +384,7 @@ DiseasyActivity <- R6::R6Class(
private$.scenario_matrix <- new_scenario_matrix
private$.risk_matrix <- new_risk_matrix

},
},


#' @description
Expand Down Expand Up @@ -584,7 +584,7 @@ DiseasyActivity <- R6::R6Class(
printr("Scenario: Activity scenario not yet set")

Check warning on line 584 in R/DiseasyActivity.R

View check run for this annotation

Codecov / codecov/patch

R/DiseasyActivity.R#L582-L584

Added lines #L582 - L584 were not covered by tests
} else {
printr("Scenario: Overview")
print(self$scenario_matrix)
print(self$scenario_matrix)
cat("\n")

Check warning on line 588 in R/DiseasyActivity.R

View check run for this annotation

Codecov / codecov/patch

R/DiseasyActivity.R#L586-L588

Added lines #L586 - L588 were not covered by tests
}

Expand Down Expand Up @@ -714,7 +714,7 @@ DiseasyActivity <- R6::R6Class(
purrr::map(~ purrr::pluck(., type) * purrr::pluck(., "risk")) |>
purrr::reduce(`+`, .init = rep(0, private$n_age_groups)) |> # each age_group starts with 0 activity
stats::setNames(names(self$contact_basis$proportion))
}
}
)

names(risk_weighted_activity) <- private$activity_types
Expand Down

0 comments on commit b13a84f

Please sign in to comment.