-
Notifications
You must be signed in to change notification settings - Fork 63
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #479 from e2nIEE/develop
release 0.8.0
- Loading branch information
Showing
204 changed files
with
21,880 additions
and
1,068 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,106 @@ | ||
# This workflow will install Python dependencies, run tests and lint with a variety of Python versions | ||
# A coverage report will be created for the Python 3.8 version | ||
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions | ||
|
||
name: release | ||
|
||
# Controls when the action will run. | ||
on: | ||
# Allows you to run this workflow manually from the Actions tab | ||
workflow_dispatch: | ||
inputs: | ||
upload_server: | ||
description: 'upload server' | ||
required: true | ||
default: 'testpypi' | ||
type: choice | ||
options: | ||
- 'testpypi' | ||
- 'pypi' | ||
|
||
# A workflow run is made up of one or more jobs that can run sequentially or in parallel | ||
jobs: | ||
# This workflow contains a single job called "build" | ||
upload: | ||
# The type of runner that the job will run on | ||
runs-on: ubuntu-latest | ||
|
||
# Steps represent a sequence of tasks that will be executed as part of the job | ||
steps: | ||
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it | ||
- uses: actions/checkout@v2 | ||
|
||
# Sets up python3 | ||
- uses: actions/setup-python@v2 | ||
with: | ||
python-version: '3.10' | ||
# Installs and upgrades pip, installs other dependencies and installs the package from setup.py | ||
- name: Install dependencies | ||
run: | | ||
# Upgrade pip | ||
python3 -m pip install --upgrade pip | ||
# Install twine | ||
python3 -m pip install setuptools wheel twine | ||
# Upload to TestPyPI | ||
- name: Build and Upload to TestPyPI | ||
if: ${{ inputs.upload_server == 'testpypi'}} | ||
run: | | ||
python3 setup.py sdist --formats=zip | ||
twine check dist/* --strict | ||
python3 -m twine upload dist/* | ||
env: | ||
TWINE_USERNAME: __token__ | ||
TWINE_PASSWORD: ${{ secrets.TESTPYPI }} | ||
TWINE_REPOSITORY: testpypi | ||
|
||
# Upload to PyPI | ||
- name: Build and Upload to PyPI | ||
if: ${{ inputs.upload_server == 'pypi' }} | ||
run: | | ||
python3 setup.py sdist --formats=zip | ||
twine check dist/* --strict | ||
python3 -m twine upload dist/* | ||
env: | ||
TWINE_USERNAME: __token__ | ||
TWINE_PASSWORD: ${{ secrets.PYPI }} | ||
TWINE_REPOSITORY: pypi | ||
|
||
- name: Sleep for 300s to make release available | ||
uses: juliangruber/sleep-action@v1 | ||
with: | ||
time: 300s | ||
|
||
build: | ||
|
||
runs-on: ${{ matrix.os }} | ||
needs: upload | ||
strategy: | ||
matrix: | ||
python-version: ['3.7', '3.8', '3.9', '3.10'] | ||
os: [ ubuntu-latest, windows-latest ] | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- name: Install dependencies TestPyPI | ||
if: ${{ inputs.upload_server == 'testpypi'}} | ||
run: | | ||
python -m pip install --upgrade pip | ||
python -m pip install pytest nbmake python-igraph pytest-split numba | ||
pip install --no-cache-dir -i https://test.pypi.org/simple/ --extra-index-url https://pypi.org/simple pandapipes[all] | ||
- name: Install dependencies PyPI | ||
if: ${{ inputs.upload_server == 'pypi'}} | ||
run: | | ||
python -m pip install --upgrade pip | ||
python -m pip install pytest nbmake python-igraph pytest-split numba | ||
pip install pandapipes | ||
- name: List all installed packages | ||
run: | | ||
pip list | ||
- name: Test with pytest | ||
run: | | ||
pytest | ||
pytest --nbmake -n=auto "./tutorials" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,7 @@ | ||
include LICENSE AUTHORS README.rst CHANGELOG.rst .travis.yml .github/**/*.yml | ||
include LICENSE AUTHORS README.rst CHANGELOG.rst .github/**/*.yml | ||
global-include *.json | ||
global-include *.csv | ||
global-include *.txt | ||
|
||
prune doc* | ||
prune tutorials* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
sphinx>=5.3.0 | ||
sphinx_rtd_theme>=1.1.1 | ||
numpydoc>=1.5.0 | ||
sphinxcontrib.bibtex>=2.5.0 |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 5 additions & 5 deletions
10
doc/source/components/circulation_pump_mass/circ_pump_mass_par.csv
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
**Parameter**;**Datatype**;**Value Range**;**Explanation** | ||
name;string;;Name of the pump | ||
from_junction;integer;:math:`>` 0;Index of junction at which the pump starts | ||
to_junction;integer;:math:`>` 0;Index of junction at which the pump ends | ||
p_bar;float;:math:`>` 0;Pressure set point [bar] | ||
p_lift_bar;float;:math:`>` 0;Pressure lift induced by the pump [bar] | ||
t_k;float;:math:`>` 0;Temperature set point [K] | ||
return_junction;integer;:math:`>` 0;Index of junction on the return side (where the pump starts) | ||
flow_junction;integer;:math:`>` 0;Index of junction on the flow side (where the pump ends) | ||
p_flow_bar;float;:math:`>` 0;Pressure set point at the pump outlet (at flow side) [bar] | ||
mdot_flow_kg_per_s;float;:math:`>` 0;Mass flow transported by the pump [kg/s] | ||
t_flow_k;float;:math:`>` 0;Temperature set point (at flow side) [K] | ||
in_serivce;boolean;True / False;True for in service or False for out of service | ||
type;string;;Type variable to classify the pump |
2 changes: 1 addition & 1 deletion
2
doc/source/components/circulation_pump_mass/circ_pump_mass_res.csv
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
**Parameter**;**Datatype**;**Explanation** | ||
deltap_bar;float;The pressure lift caused by the pump [bar] | ||
mdot_kg_per_s;float;The mass flow running through the pump [bar] | ||
mdot_flow_kg_per_s;float;The mass flow running through the pump [bar] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 5 additions & 5 deletions
10
doc/source/components/circulation_pump_pressure/circ_pump_pressure_par.csv
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
**Parameter**;**Datatype**;**Value Range**;**Explanation** | ||
name;string;;name of the pump | ||
from_junction;integer;:math:`>` 0;index of junction at which the pump starts | ||
to_junction;integer;:math:`>` 0;index of junction at which the pump ends | ||
p_bar;float;:math:`>` 0;pressure set point [bar] | ||
mdot_kg_per_s;float;:math:`>` 0;mass flow transported by the pump [bar] | ||
t_k;float;:math:`>` 0;temperature set point [K] | ||
return_junction;integer;:math:`>` 0;Index of junction on the return side (where the pump starts) | ||
flow_junction;integer;:math:`>` 0;Index of junction on the flow side (where the pump ends) | ||
p_flow_bar;float;:math:`>` 0;Pressure set point at the pump outlet (at flow side) [bar] | ||
p_lift_bar;float;:math:`>` 0;Pressure lift induced by the pump [bar] | ||
t_flow_k;float;:math:`>` 0;Temperature set point (at flow side) [K] | ||
in_serivce;boolean;True/ False;True for in service or False for out of service | ||
type;string;;type variable to classify the pump |
2 changes: 1 addition & 1 deletion
2
doc/source/components/circulation_pump_pressure/circ_pump_pressure_res.csv
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
**Parameter**;**Datatype**;**Explanation** | ||
deltap_bar;float;The pressure lift caused by the pump [bar] | ||
mdot_kg_per_s;float;The mass flow running through the pump [bar] | ||
mdot_flow_kg_per_s;float;The mass flow running through the pump [bar] |
Oops, something went wrong.