Model/model_data
Khalim Conn-Kowlessar 43afeddb8e debugging epc cleaner
2023-09-07 15:30:04 +03:00
..
analysis added SapModel to app 2023-07-21 17:02:23 +01:00
epc_attributes debugging epc cleaner 2023-09-07 15:30:04 +03:00
optimiser Added setup_slack to gain optimiser 2023-08-30 11:06:54 +01:00
plotting Added plotting functions 2023-06-27 09:56:14 +01:00
requirements added creating of cleaning dataset and storage of cleaning data 2023-09-05 16:33:50 +01:00
simulation_system Added days elapsed calculations 2023-09-07 13:57:23 +03:00
tests debugging epc cleaner 2023-09-07 15:30:04 +03:00
__init__.py renamed epc_data to model_data 2023-06-15 15:05:50 +01:00
app.py Debugging EpcCleaner and adding additional cases 2023-09-07 15:21:12 +03: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
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 cleaning class 2023-09-07 15:06:13 +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 creating of cleaning dataset and storage of cleaning data 2023-09-05 16:33:50 +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