Skip to content

Commit 4ec6061

Browse files
authored
Merge pull request #462 from cmu-delphi/claims_hosp-lint
Fix linting on claims_hosp
2 parents 16cd368 + f19dfce commit 4ec6061

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

claims_hosp/delphi_claims_hosp/weekday.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ class Weekday:
1818

1919
@staticmethod
2020
def get_params(data):
21-
"""Correct a signal estimated as numerator/denominator for weekday effects.
21+
r"""Correct a signal estimated as numerator/denominator for weekday effects.
2222
2323
The ordinary estimate would be numerator_t/denominator_t for each time point
2424
t. Instead, model
@@ -63,7 +63,7 @@ def get_params(data):
6363

6464
# Construct design matrix to have weekday indicator columns and then day
6565
# indicators.
66-
X = np.zeros((nums.shape[0], 6 + nums.shape[0]))
66+
X = np.zeros((nums.shape[0], 6 + nums.shape[0])) # pylint: disable=invalid-name
6767
not_sunday = np.where(nums.index.dayofweek != 6)[0]
6868
X[not_sunday, np.array(nums.index.dayofweek)[not_sunday]] = 1
6969
X[np.where(nums.index.dayofweek == 6)[0], :6] = -1

0 commit comments

Comments
 (0)