Skip to content

Commit

Permalink
Initial Tessif-PHD release
Browse files Browse the repository at this point in the history
  • Loading branch information
tZE authored and tZE committed Mar 26, 2023
1 parent 0b6cee9 commit 2abf516
Show file tree
Hide file tree
Showing 11 changed files with 80 additions and 23 deletions.
52 changes: 46 additions & 6 deletions README.rst
Original file line number Diff line number Diff line change
@@ -1,16 +1,56 @@
TESSiF - Transforming Energy Supply System modell I ng Framework
================================================================
Tessif-PHD - Transforming Energy Supply System modell I ng Framework - PhD Version
==================================================================================

.. image:: https://zenodo.org/badge/618724258.svg
:target: https://zenodo.org/badge/latestdoi/618724258

Disclaimer
----------
Original, heavy-weight, implementation of Tessif which was published for reference and transparency reasons and to enable other researchers to reuse various aspects of its code base.

A much more light-weight, application-oriented implementation can be found at: https://github.com/tZ3ma/tessif.

Purpose
-------
Designed to provide a harmonized data input for the Energy Supply System Modelling and Optimization Software (ESSMOS) tools Calliope, FINE, oemof.solph and PyPSA.

Usage
-----
Install
-------

To nstall the tessif-phd version of tessif, python 3.8 is recommend.
After the installation, the package will be available as ``tessif``.

1. Clone the git repository for **tessif-phd**

.. code:: shell
git clone https://github.com/tZ3ma/tessif-phd.git
2. Create a new virtual environment and activate it:

.. code:: shell
python3 -m venv your_env_name
source your_env_name/bin/activate
3. Make sure **pip**, **setuptools** and **wheel** are up to date:

.. code:: shell
pip install -U pip setuptools wheel
4. Install **tessif-phd** and it's requirements:

.. code:: shell
pip install tessif-phd/
5. After installation is done you can check if everything went according to plan by executing
tessif's tests. Do so by entering:

Install using::
.. code:: shell
$ pip install tessif-phd
python tests/nose_testing.py
4 changes: 2 additions & 2 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,12 @@

# -- Project information -----------------------------------------------------

project = 'Tessif-PHD - Transforming Energy Supply System Modell I ng Framework'
project = 'Tessif-PHD - Transforming Energy Supply System Modell I ng Framework - PHD-Version'
copyright = '2023, Mathias Ammon'
author = 'Mathias Ammon'

# The full version, including alpha/beta/rc tags
release = '0.0.1alpha'
release = '0.0.1'


# -- General configuration ---------------------------------------------------
Expand Down
19 changes: 12 additions & 7 deletions docs/source/getting_started/installation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
Installation
************

Following Sections provide overview on how to install Tessif-phd.
Following Sections provide overview on how to install the tessif-phd version of tessif.
Python 3.8 is recommend.

.. contents:: Contents
:backlinks: top
Expand All @@ -28,7 +29,7 @@ Linux

.. code:: shell
git clone https://collaborating.tuhh.de/ietma/tessif-phd/
git clone https://github.com/tZ3ma/tessif-phd.git
5. Create a new virtual environment and activate it:

Expand Down Expand Up @@ -56,13 +57,17 @@ Linux

.. code:: shell
tessif --test_install
python tests/nose_testing.py
Windows
=======

Windows installation tutorial goes here
See the development guide and replace step 9b with:

.. code:: powershell
pip install .
Development
Expand All @@ -83,7 +88,7 @@ Linux

.. code:: shell
git clone https://collaborating.tuhh.de/ietma/tessif-phd/
git clone https://github.com/tZ3ma/tessif-phd.git
4. Create a new virtual environment and activate it:

Expand Down Expand Up @@ -117,7 +122,7 @@ Linux

.. code:: shell
tessif --test_install
python tests/nose_testing.py
9. (Optional) Build your own (html) documentation using Sphinx:

Expand Down Expand Up @@ -216,7 +221,7 @@ Windows

.. code:: shell
git clone https://collaborating.tuhh.de/ietma/tessif-phd/
git clone https://github.com/tZ3ma/tessif-phd.git
5. Create a new virtual environment and activate it:

Expand Down
18 changes: 15 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

setuptools.setup(
name='tessif-phd',
version='0.0.1alpha',
version='0.0.1',
description='Transforming Energy Supply System modell I ng Framework',
long_description=long_description,
classifiers=[
Expand All @@ -38,8 +38,20 @@
package_dir={'': 'src'},
package_data={
'docs': ['*.rst'],
'': ['xlsx/*', 'basic/*.cfg', 'objectives/*.cfg', 'nested/*.cfg',
'xml/*.xml', 'hdf5/*.hdf5', 'load_profiles/*.csv'],
'': [
'xlsx/*',
'basic/*.cfg',
'objectives/*.cfg',
'nested/*.cfg',
'xml/*.xml',
'hdf5/*.hdf5',
'load_profiles/*.csv',
"*.txt",
"*.yml",
"*.yaml",
"*.csv",
"*.hdf5",
],
},
py_modules=[splitext(basename(path))[0] for path in glob("src/*.py")],
install_requires=[
Expand Down
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
10 changes: 5 additions & 5 deletions src/tessif/model/energy_system.py
Original file line number Diff line number Diff line change
Expand Up @@ -415,11 +415,11 @@ def connect(self, energy_system, connecting_busses, connection_uid):
1990-07-13 03:00:00 -0.0 -84.0 -0.0 0.0 10.0 74.0
>>> print(resultier.node_load['Central Bus 0'])
central_bus_0 connector Excess Source 0 Power Generator 0 Renewable Source 0 Storage 0 connector Excess Sink 0 Sink 0 Storage 0
1990-07-13 00:00:00 -73.0 -0.0 -0.0 -8.0 -1.0 0.0 0.0 82.0 0.0
1990-07-13 01:00:00 -74.0 -0.0 -0.0 -8.0 -0.0 0.0 0.0 82.0 0.0
1990-07-13 02:00:00 -74.0 -0.0 -0.0 -8.0 -0.0 0.0 0.0 82.0 0.0
1990-07-13 03:00:00 -74.0 -0.0 -0.0 -8.0 -0.0 0.0 0.0 82.0 0.0
Central Bus 0 Excess Source 0 Power Generator 0 Renewable Source 0 Storage 0 connector Excess Sink 0 Sink 0 Storage 0 connector
1990-07-13 00:00:00 -0.0 -0.0 -8.0 -1.0 -73.0 0.0 82.0 0.0 0.0
1990-07-13 01:00:00 -0.0 -0.0 -8.0 -0.0 -74.0 0.0 82.0 0.0 0.0
1990-07-13 02:00:00 -0.0 -0.0 -8.0 -0.0 -74.0 0.0 82.0 0.0 0.0
1990-07-13 03:00:00 -0.0 -0.0 -8.0 -0.0 -74.0 0.0 82.0 0.0 0.0
6. Plot the energy system for better understanding the defaults:
Expand Down

0 comments on commit 2abf516

Please sign in to comment.