Model/model_data
2023-08-19 13:10:08 +00:00
..
analysis added SapModel to app 2023-07-21 17:02:23 +01:00
epc_attributes pulling out lighting averages 2023-08-01 14:45:29 +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 restructured app to move property to backend 2023-07-21 17:32:06 +01:00
simulation_system add residual png 2023-08-19 13:10:08 +00:00
tests restructured app to move property to backend 2023-07-21 17:32:06 +01:00
__init__.py renamed epc_data to model_data 2023-06-15 15:05:50 +01:00
app.py restructured backend api, moving epc clean back to how it was 2023-08-02 10:25:07 +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 pulling out lighting averages 2023-08-01 14:45:29 +01:00
LandRegistryClient.py further breaking up code 2023-07-20 12:24:34 +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 restructured backend api, moving epc clean back to how it was 2023-08-02 10:25:07 +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