You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Developers: Léonie Fierz (Urban Energy Systems Lab at Swiss Federal Laboratories for Materials Science and Technology Empa)
17
15
- Programming Language and Version: Python 3.8
18
16
- Dependencies (see also requirements.txt)
19
17
20
18
- cesar-p version 2.0.0
21
-
- geomeppy (for 3D obj generation from idf files)
22
-
- Development dependencies:
23
-
24
-
- flake8
25
-
- mypy
26
-
- black
27
-
28
-
- Documentation: all included in this README and in the comments of the different scripts
19
+
- geomeppy (for 3D obj generation from idf files, needed for 3dview.py example)
29
20
21
+
- Documentation: all included in this README and in the comments of the different example scripts
30
22
31
23
Project Status
32
24
===============
33
-
"Released", examples are OK to be used to start your project.
34
-
No project version tracking is set up.
35
-
There are Tags marking the version compatible with earlier cesar-p-core lib versions in case you need to use an older cesar-p-core version.
36
25
26
+
There is no versioning for this examples project, but they are ready to be used as a start for your own project based on cesar-p-core.
27
+
There are Tags marking the version compatible with earlier cesar-p-core lib versions in case you need to use an older cesar-p-core version.
37
28
38
29
Installation & Usage
39
30
=====================
40
31
41
-
If you alread installed cesar-p according to the installation guide of cesar-p-core project, just do a clone of this
42
-
repository and use the virtual environment where you installed cesar-p to run the examples as outlined under Usage.
32
+
1. Set up [cesar-p-core library](https://github.com/hues-platform/cesar-p-core) according to the [installation guide](https://cesar-p-core.readthedocs.io/en/latest/readme.html#installation-usage)
33
+
34
+
2. Activate the virtual environment you installed cesar-p-core libarary, if you followed the installation instrucctions and you are on Windows do:
- Change to the project directory (cd cesar-p-usage-examples)
59
-
- Download and Install Python in the verison outlined under Project Info from https://www.python.org/downloads/.
60
-
- If you already have a Python installation, do not tick 'Add Python X.Y to Path' during installation procedure.
61
-
- Note: using Anaconda is not recommended, but should work
62
-
- Create a new Python virtual environment and activate it, e.g.:
48
+
5. Then to run e.g. the simple example:
63
49
64
-
..code-block::
50
+
.. code-block::
65
51
66
-
python -m venv venv-cesar-p
67
-
venv-cesar-p/Scripts/activate
68
-
69
-
70
-
- Install project dependencies, which includes cesar-p-core.
71
-
If you did clone the master branch, you might need to get the latest development state of cesar-p by cloning and installing the cesar-p-core master branch.
72
-
Alternatively checkout the Tag of cesar-p-usage-examples matching your cesar-p version.
73
-
74
-
.. code-block::
75
-
76
-
pip install -r requirements.txt
77
-
78
-
79
-
- For developers - if you want static code checkers:
80
-
81
-
.. code-block::
82
-
83
-
pip install flake8, black
84
-
85
-
86
-
Usage
87
-
-----
88
-
89
-
For the most simple example, run the simple_example.
90
-
91
-
You can run with the provided example project files from example_project_files folder or you can
92
-
adapt the simple_example/simple_main_config.yml to point to your project files for site vertices, building information and weather file.
93
-
94
-
.. code-block::
95
-
96
-
cd simple_example
97
-
python simple_run.py
52
+
cd simple_example
53
+
python simple_run.py
98
54
55
+
You can adapt the simple_example/simple_main_config.yml to point to your project files for site vertices, building information and weather file.
99
56
100
57
For more options what you can do with the SimulationManager API, e.g. hourly result outputs, check out *advanced_examples/basic_cesar_usage.py*
101
58
@@ -110,7 +67,6 @@ Scripts overview
110
67
For most of the examples in *pre_or_postprocessing_scripts* you need to first run a simulation of the *simple_example* project, see above.
111
68
Navigate to *pre_or_postprocessing_scripts* to run the scripts, as most of them have relative path specifications.
0 commit comments