Model/epc_data
2023-06-14 18:53:37 +01:00
..
attributes added separate detection of tariff 2023-06-14 18:53:37 +01:00
tests Added unit tests for heating controls 2023-06-14 16:54:38 +01:00
__init__.py Project environment setup 2023-06-07 15:57:22 +01:00
app.py added separate detection of tariff 2023-06-14 18:53:37 +01:00
config.py data cleaning wip 2023-06-07 23:00:59 +01:00
downloader.py Added downloader unit tests 2023-06-14 12:34:40 +01:00
EpcClean.py refactored roof attributes and extended unit tests 2023-06-13 11:36:23 +01:00
Property.py Take most recent epc if multiple found in the Property class 2023-06-13 09:49:45 +01:00
README.md test commit' 2023-06-08 16:06:51 +01:00
requirements.txt Added downloader unit tests 2023-06-14 12:34:40 +01:00
temp_inputs.py Take most recent epc if multiple found in the Property class 2023-06-13 09:49:45 +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 /epc_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