Model/model_data
2023-07-21 15:52:11 +01:00
..
analysis further breaking up code 2023-07-20 12:24:34 +01:00
epc_attributes windows and lighting debugged 2023-07-21 10:40:47 +01:00
optimiser Setting up the data_collection projec 2023-06-29 16:20:36 +01:00
plotting Added plotting functions 2023-06-27 09:56:14 +01:00
requirements creating land registry repo 2023-07-20 14:47:19 +01:00
tests fixed recommendation tests 2023-07-21 15:46:13 +01:00
__init__.py renamed epc_data to model_data 2023-06-15 15:05:50 +01:00
app.py extending description cleaning for expanded data 2023-07-20 18:51:55 +01:00
BaseUtility.py Added first floor recommendation tests 2023-06-27 12:23:55 +01:00
BoreholeClient.py further breaking up code 2023-07-20 12:24:34 +01:00
config.py renamed epc_data to model_data 2023-06-15 15:05:50 +01:00
downloader.py Added new epc-api-python version and increased amount of data being used 2023-07-01 16:02:35 +01:00
EpcClean.py fixed minor bug which commented out the averages cleaning 2023-07-03 18:31:49 +01:00
LandRegistryClient.py further breaking up code 2023-07-20 12:24:34 +01:00
Property.py creating land registry repo 2023-07-20 14:47:19 +01:00
rdsap_tables.py Added U-value and perimeter estimation functions 2023-06-26 13:05:12 +01:00
README.md moved .coveragerc and pytest.ini files to model_data 2023-07-05 13:07:55 +01:00
temp_inputs.py renamed epc_data to model_data 2023-06-15 15:05:50 +01:00
utils.py further breaking up code 2023-07-20 12:24:34 +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

pytest --cov-config=model_data/.coveragerc --cov=model_data