Skip to content

pyCity addon to identify resilient energy system configurations, based on PhD-thesis "Optimized Placement of Thermo-Electric Energy Systems in City Districts under Uncertainty" of Jan Schiefelbein

License

Notifications You must be signed in to change notification settings

RWTH-EBC/pyCity_resilience

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build Status License

pyCity_resilience

pyCity addon to identify resilient energy system configurations

Contributing

  1. Clone repository: git clone [email protected]:RWTH-EBC/pyCity_resilience.git (for SSH usage) otherwise, use https path: git clone https://github.com/RWTH-EBC/pyCity_resilience.git
  2. Create issue on https://github.com/RWTH-EBC/pyCity_resilience/issues Create your feature branch: git checkout -b issueXY_explanation
  3. Add and commit your changes: git commit -m 'Add some feature'
  4. Push to the branch: git push origin issueXY_explanation
  5. Submit a pull request (for merging into development branch) to @JSchiefelbein https://github.com/RWTH-EBC/pyCity_resilience/pulls
  6. Working version of development branch can later be merged into master

Installation

pyCity_resilience requires the following EBC Python packages:

  • richardsonpy
  • uesgraphs
  • pyCity
  • pyCity_calc
  • TEASER

richardsonpy is available via https://github.com/RWTH-EBC/richardsonpy

uesgraph is available via https://github.com/RWTH-EBC/uesgraphs

pyCity is available via https://github.com/RWTH-EBC/pyCity

pyCity_calc is available via https://github.com/RWTH-EBC/pyCity_calc

TEASER is available viahttps://github.com/RWTH-EBC/TEASER

Both can be installed into your system Python path via pip:

pip install -e 'your_path_to_richardsonpy_setup_folder'

pip install -e 'your_path_to_uesgraph_setup_folder'

and

pip install -e 'your_path_to_pycity_setup_folder'

In your current Python path does not point at your Python installation, you can directly call your Python interpreter and install the packages via pip, e.g.:

"<path_to_your_python_distribution>\Python.exe" -m pip install -e <your_path_to_uesgraph_setup>

You can check if installation / adding packages to python has been successful by adding new .py file and trying to import richardsonpy, uesgraphs and pycity.

import richardsonpy

import uesgraphs

import pycity_base

Import should be possible without errors.

TEASER can be installed the same way (recommended, if you want to actively work on TEASER code) or directly via pip pip install teaser (if you only want to use TEASER).

Further required packages are:

  • shapely (for uesgraphs integration)
  • pyproj (for uesgraphs integration)

Shapely installation on Windows machine

On Windows systems, pip install of shapely (or pyproj etc.) will probably raise an error during installation. However, there is a workaround with precompiled Python packages.

  • Go to http://www.lfd.uci.edu/~gohlke/pythonlibs/
  • Search for Python package, you could not install via pip (such as shapely)
  • Choose download file depending on your Python version and machine (e.g. cp34 stands for Python 3.4; win32 for 32 bit; amd64 for 64 bit)
  • Download wheel file and remember its path
  • Open a command prompt within your Python environment
  • Type: ''pip install <path_to_your_whl_file>'
  • Python packages should be installed

Under Linux and Mac OS pip installation of shapely and pyproj should work without problems.

How to cite pyCity_resilience

License

pyCity_resilience is released under the MIT License

Acknowledgements

Grateful acknowledgement is made for financial support by Federal Ministry for Economic Affairs and Energy (BMWi), promotional references 03ET1138D and 03ET1381A.

About

pyCity addon to identify resilient energy system configurations, based on PhD-thesis "Optimized Placement of Thermo-Electric Energy Systems in City Districts under Uncertainty" of Jan Schiefelbein

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published