getting deployment working

This commit is contained in:
Khalim Conn-Kowlessar 2023-07-19 13:49:46 +01:00
parent 96295f1c3b
commit 5975bede3c
7 changed files with 14 additions and 20 deletions

View file

@ -24,5 +24,4 @@ typing_extensions==4.7.1
uvicorn==0.22.0
uvloop==0.17.0
watchfiles==0.19.0
websockets==11.0.3
boto3
websockets==11.0.3

View file

@ -1,4 +1,4 @@
import pandas as pd
from datetime import datetime
import re
from epc_api.client import EpcClient
from model_data.config import EPC_AUTH_TOKEN
@ -130,7 +130,8 @@ class Property(BaseUtility):
"""
if self.full_sap_epc:
self.year_built = pd.to_datetime(self.full_sap_epc["lodgement-date"]).year
self.year_built = datetime.strptime(self.full_sap_epc["lodgement-date"], '%Y-%m-%d').year
return
if self.data["construction-age-band"] not in self.DATA_ANOMALY_MATCHES:

View file

@ -4,3 +4,4 @@ mock
pytest-cov
pytest-mock
pip-check-reqs
seaborn

View file

@ -1,5 +1,3 @@
pandas==2.0.3
numpy==1.25.1
pytz==2023.3
tzdata==2023.3
epc-api-python==1.0.2
@ -11,9 +9,5 @@ dbfread
pyproj
pint
mip
seaborn
statsmodels
scikit-learn
pyspellchecker
textblob
xgboost
textblob

View file

@ -1 +1,6 @@
geopandas
geopandas
xgboost
statsmodels
scikit-learn
pandas==2.0.3
numpy==1.25.1

View file

@ -21,6 +21,7 @@ package:
# - model_data/**
exclude:
- model_data/local_data/**
- model_data/tests/**
- infrastructure/**
- data_collection/**
- node_modules/**

View file

@ -25,9 +25,6 @@ uvicorn==0.22.0
uvloop==0.17.0
watchfiles==0.19.0
websockets==11.0.3
boto3
pandas==2.0.3
numpy==1.25.1
pytz==2023.3
tzdata==2023.3
epc-api-python==1.0.2
@ -39,9 +36,5 @@ dbfread
pyproj
pint
mip
seaborn
statsmodels
scikit-learn
pyspellchecker
textblob
xgboost
textblob