Model/epc_data
Khalim Conn-Kowlessar 3d395ed5bb refactored floor class
2023-06-13 12:57:40 +01:00
..
attributes refactored floor class 2023-06-13 12:57:40 +01:00
tests refactored floor class 2023-06-13 12:57:40 +01:00
__init__.py Project environment setup 2023-06-07 15:57:22 +01:00
app.py refactored floor class 2023-06-13 12:57:40 +01:00
config.py data cleaning wip 2023-06-07 23:00:59 +01:00
downloader.py data cleaning wip 2023-06-07 23:00:59 +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 Take most recent epc if multiple found in the Property class 2023-06-13 09:49:45 +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