From f19dfce32b201ee44b0002a35a07ca0f662819e4 Mon Sep 17 00:00:00 2001 From: andrew Date: Mon, 9 Nov 2020 07:59:03 -0800 Subject: [PATCH] Fix linting on weekday file --- claims_hosp/delphi_claims_hosp/weekday.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/claims_hosp/delphi_claims_hosp/weekday.py b/claims_hosp/delphi_claims_hosp/weekday.py index a8148b8ab..03b69cba4 100644 --- a/claims_hosp/delphi_claims_hosp/weekday.py +++ b/claims_hosp/delphi_claims_hosp/weekday.py @@ -18,7 +18,7 @@ class Weekday: @staticmethod def get_params(data): - """Correct a signal estimated as numerator/denominator for weekday effects. + r"""Correct a signal estimated as numerator/denominator for weekday effects. The ordinary estimate would be numerator_t/denominator_t for each time point t. Instead, model @@ -63,7 +63,7 @@ def get_params(data): # Construct design matrix to have weekday indicator columns and then day # indicators. - X = np.zeros((nums.shape[0], 6 + nums.shape[0])) + X = np.zeros((nums.shape[0], 6 + nums.shape[0])) # pylint: disable=invalid-name not_sunday = np.where(nums.index.dayofweek != 6)[0] X[not_sunday, np.array(nums.index.dayofweek)[not_sunday]] = 1 X[np.where(nums.index.dayofweek == 6)[0], :6] = -1