Skip to content

Commit

Permalink
readme and docs
Browse files Browse the repository at this point in the history
  • Loading branch information
lthurner committed Jan 12, 2017
1 parent 26f71c0 commit 6aa57b1
Show file tree
Hide file tree
Showing 6 changed files with 40 additions and 33 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Change Log
[1.1.1] - 2017-01-12
----------------------
- [ADDED] installation description and pypi files from github
- [ADDED] automatic inversion of active power limits in convert format (see change below)
- [ADDED] automatic inversion of active power limits in convert format to account for convention change in version 1.1.0
- [CHANGED] install_requires in setup.py


Expand Down
2 changes: 1 addition & 1 deletion MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
include LICENSE AUTHORS README.rst requirements.txt CHANGELOG.rst installation.rst
include LICENSE AUTHORS README.rst requirements.txt CHANGELOG.rst
global-include *.p

28 changes: 27 additions & 1 deletion README.rst
Original file line number Diff line number Diff line change
@@ -1,4 +1,30 @@
include installation.rst
pandapower combines the data analysis library `pandas <http://pandas.pydata.org>`_ and the power flow solver `PYPOWER <https://pypi.python.org/pypi/PYPOWER>`_ to create an easy to use network calculation program
aimed at automation of analysis and optimization in power systems.

pandapower is a joint development of the research group Energy Management and Power System Operation, University of Kassel and the Department for Distribution System
Operation at the Fraunhofer Institute for Wind Energy and Energy System Technology (IWES), Kassel.

For more information, go to `<http://www.uni-kassel.de/go/pandapower>`_.

Installation
==============
To install pandapower, simply use: ::

pip install pandapower

This will install the following dependencies:
- pypower>=5.0.1
- pandas
- networkx

To use all of pandapowers functionalites, you will need the following additional packages:
- numba>=0.25.0 (for accelerated loadflow calculation)
- matplotlib (for plotting)
- python-igraph (for plotting networks without geographical information)
- xlrd (for loading/saving files from/to excel)
- openpyxl (for loading/saving files from/to excel)

We recommend the `Anaconda Distribution <https://www.continuum.io/downloads>`_, which already contains a lot of modules for scientific computing that are needed for working with pandapower.

Minimal Example
=====================
Expand Down
6 changes: 3 additions & 3 deletions doc/getting_started/installation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ pandapower itself can be installed with the following steps:

1. Download and unzip the `pandapower source distribution <http://www.uni-kassel.de/eecs/fachgebiete/e2n/software/pandapower.html>`_ to your local hard drive.

2. Open a command prompt (e.g. Windows --> cmd) and navigate to the folder that contains the setup.py file with the command cd <folder> ::
2. Open a command prompt (e.g. Windows cmd or Anaconda Command Prompt) and navigate to the folder that contains the setup.py file with the command cd <folder> ::

cd %path_to_pandapower%\pandapower-1.0.2\
cd %path_to_pandapower%\pandapower-x.x.x\

3. Install pandapower by running ::

Expand All @@ -47,7 +47,7 @@ pandapower itself can be installed with the following steps:
- openpyxl (for loading/saving files from/to excel)

.. note::
All of these packages except pypower are included in the anacaonda distribution.
All of these packages except pypower and python-igraph are already included in the anacaonda distribution.

If you are having problems with the dependencies, you can also install these packages manually with pip install or any
other way you like.
Expand Down
25 changes: 0 additions & 25 deletions installation.rst

This file was deleted.

10 changes: 8 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,20 @@

from setuptools import setup, find_packages

with open('README.rst', 'rb') as f:
install = f.read().decode('utf-8').partition("Minimal Example")[0]
with open('CHANGELOG.rst', 'rb') as f:
changelog = f.read().decode('utf-8')

long_description = '\n\n'.join((install, changelog))

setup(
name='pandapower',
version='1.1.1',
author='Leon Thurner, Alexander Scheidler',
author_email='[email protected], [email protected]',
description='Convenient Power System Modelling and Analysis based on PYPOWER and pandas',
long_description = '\n\n'.join(open(f, 'rb').read().decode('utf-8')
for f in ['installation.rst', 'CHANGELOG.rst']),
long_description = long_description,
url='http://www.uni-kassel.de/go/pandapower',
license='BSD',
install_requires=["pypower>=5.0.1",
Expand Down

0 comments on commit 6aa57b1

Please sign in to comment.