Model/model_data
2023-09-21 15:14:10 +01:00
..
analysis added SapModel to app 2023-07-21 17:02:23 +01:00
epc_attributes adding in some missing cases 2023-09-20 14:42:32 +01:00
optimiser recommendation api working locally 2023-09-12 17:27:28 +01:00
plotting Added plotting functions 2023-06-27 09:56:14 +01:00
requirements Added message pack encoding to store data in slightly more optimised format 2023-09-12 13:11:12 +01:00
simulation_system Adding u-value calculations 2023-09-21 15:14:10 +01:00
tests adding in some missing cases 2023-09-20 14:42:32 +01:00
__init__.py renamed epc_data to model_data 2023-06-15 15:05:50 +01:00
BaseUtility.py Adding recommendation materials details to recommendations outputs 2023-08-21 14:39:34 +01:00
BoreholeClient.py further breaking up code 2023-07-20 12:24:34 +01:00
cleaner_app.py Adding u-value calculations 2023-09-21 15:14:10 +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 debugging mainheat solar case 2023-09-08 10:30:29 +03: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 Added in pre-processor 2023-09-13 18:06:48 +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