Skip to content

Commit fd510d2

Browse files
committed
fix import and remove unneeded statement
1 parent 35ab469 commit fd510d2

File tree

1 file changed

+2
-9
lines changed

1 file changed

+2
-9
lines changed

changehc/tests/test_sensor.py

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,14 @@
11
# standard
2-
import pytest
32

4-
# third party
5-
from delphi_utils import read_params, Smoother
63
import numpy as np
74
import numpy.random as nr
85
import pandas as pd
9-
106
# first party
117
from delphi_changehc.config import Config
128
from delphi_changehc.load_data import load_combined_data
139
from delphi_changehc.sensor import CHCSensor
10+
# third party
11+
from delphi_utils import read_params
1412

1513
CONFIG = Config()
1614
PARAMS = read_params()
@@ -21,11 +19,6 @@
2119
class TestLoadData:
2220
combined_data = load_combined_data(DENOM_FILEPATH, COVID_FILEPATH, DROP_DATE,
2321
"fips")
24-
# change smoother window length for test data
25-
CHCSensor.smoother = Smoother("savgol",
26-
poly_fit_degree=1,
27-
gaussian_bandwidth=Config.SMOOTHER_BANDWIDTH,
28-
window_length=20)
2922

3023
def test_backfill(self):
3124
num0 = np.array([0, 1, 2, 3, 4, 5, 6, 7, 8], dtype=float).reshape(-1, 1)

0 commit comments

Comments
 (0)