Model/model_data
2023-06-21 12:13:35 +01:00
..
epc_attributes Added additional tests and fixed mainfuel test 2023-06-20 10:38:16 +01:00
recommendations Added in logic to allow both external and internal wall insulation as options. Currently lots of recommendation combinations can come through however we will trim them later and make them more relevant to the customer 2023-06-21 12:13:35 +01:00
tests Added additional tests and fixed mainfuel test 2023-06-20 10:38:16 +01:00
__init__.py renamed epc_data to model_data 2023-06-15 15:05:50 +01:00
app.py minor, need to estimate building age 2023-06-20 18:41:19 +01:00
BaseUtility.py Added anomaly handling into classes by introducing the BaseUtility class 2023-06-20 10:20:30 +01:00
BoreholeClient.py Added borehole tests 2023-06-19 20:31:55 +01:00
config.py renamed epc_data to model_data 2023-06-15 15:05:50 +01:00
downloader.py renamed epc_data to model_data 2023-06-15 15:05:50 +01:00
EpcClean.py Added property tests 2023-06-19 19:42:08 +01:00
LandRegistryClient.py finished land registry client for the moment 2023-06-16 09:17:46 +01:00
OpenUprnClient.py coordinate distance functions 2023-06-17 11:47:17 +01:00
Property.py Working on wall recommendations 2023-06-20 15:19:35 +01:00
README.md renamed epc_data to model_data 2023-06-15 15:05:50 +01:00
requirements.txt Working on wall recommendations, added convert_r_value function 2023-06-20 18:19:30 +01:00
temp_inputs.py renamed epc_data to model_data 2023-06-15 15:05:50 +01:00
utils.py added utils test 2023-06-16 09:42:10 +01:00

Environment setup

We're using conda to manage environments to circumvent the issues with Mac M1. This documentation will also cover Pycharm setup.

We're working in python 3.10 so

conda create -n hestia-data python=3.10

Then activate the environment

conda activate hestia-data

To set up with Pycharm, run

which python

and grab the path to the python executable. Then in Pycharm, go to Settings > Project > Python Interpreter and click the gear icon to add a new interpreter. Select Conda and either paste the path to the python executable and click OK, or select the conda environment from the dropdown.

You may need to restart Pycharm for the new interpreter to be recognised.

To install project dependencies navigate to /model_data and run

pip install -r requirements.txt

Running Tests

If you are not in a virtual environment, activate it with

conda activate envName

Then run

python -m pytest