Skip to content

Commit d086b2f

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 6f89b90 commit d086b2f

File tree

5 files changed

+3
-6
lines changed

5 files changed

+3
-6
lines changed

nowcasting_datamodel/models/metric.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -151,8 +151,6 @@ class MetricValueSQL(Base_Forecast, CreatedMixin):
151151
model_id = Column(Integer, ForeignKey("model.id"), index=True)
152152

153153

154-
155-
156154
class MetricValue(EnhancedBaseModel):
157155
"""Location that the forecast is for"""
158156

nowcasting_datamodel/read/blend/blend.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@
66
77
"""
88

9-
import structlog
109
from datetime import datetime
1110
from typing import List, Optional
1211

12+
import structlog
1313
from sqlalchemy.orm.session import Session
1414

1515
from nowcasting_datamodel.models.forecast import ForecastValue, ForecastValueSevenDaysSQL

nowcasting_datamodel/read/blend/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
"""Utils for blending forecasts together"""
2-
import structlog
32
from datetime import datetime, timedelta, timezone
43
from typing import List, Union
54

65
import pandas as pd
6+
import structlog
77

88
from nowcasting_datamodel.models import ForecastValue
99

nowcasting_datamodel/read/blend/weights.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
"""Functions to make weights for blending"""
2-
import structlog
32
from datetime import datetime, timedelta, timezone
43
from typing import List, Optional
54

65
import numpy as np
76
import pandas as pd
7+
import structlog
88

99
logger = structlog.stdlib.get_logger()
1010

nowcasting_datamodel/read/read_metric.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99

1010
from sqlalchemy.orm.session import Session
1111

12-
from nowcasting_datamodel.models import MLModelSQL
1312
from nowcasting_datamodel.models.metric import DatetimeIntervalSQL, MetricSQL, MetricValueSQL
1413

1514
logger = logging.getLogger(__name__)

0 commit comments

Comments
 (0)