iesopt 2.4.2__tar.gz → 2.6.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- iesopt-2.6.0/.editorconfig +22 -0
- iesopt-2.6.0/.github/actions/set-versions/action.yml +15 -0
- iesopt-2.6.0/.github/workflows/documentation.yml +33 -0
- iesopt-2.6.0/.github/workflows/pypi_publish.yml +35 -0
- iesopt-2.6.0/.github/workflows/pytest.yml +29 -0
- iesopt-2.6.0/.gitignore +176 -0
- iesopt-2.6.0/.pre-commit-config.yaml +23 -0
- iesopt-2.6.0/.python-version +1 -0
- iesopt-2.6.0/CHANGELOG.md +0 -0
- {iesopt-2.4.2 → iesopt-2.6.0}/PKG-INFO +18 -22
- iesopt-2.6.0/docs/Makefile +20 -0
- iesopt-2.6.0/docs/_extensions/julia_domain.py +44 -0
- iesopt-2.6.0/docs/_static/.gitkeep +0 -0
- iesopt-2.6.0/docs/_static/custom.css +35 -0
- iesopt-2.6.0/docs/conf.py +111 -0
- iesopt-2.6.0/docs/dynamic/core.py +246 -0
- iesopt-2.6.0/docs/dynamic/create.py +13 -0
- iesopt-2.6.0/docs/dynamic/julia.py +151 -0
- iesopt-2.6.0/docs/dynamic/out/.gitignore +2 -0
- iesopt-2.6.0/docs/index.md +234 -0
- iesopt-2.6.0/docs/make.bat +35 -0
- iesopt-2.6.0/docs/notebooks/.gitignore +5 -0
- iesopt-2.6.0/docs/notebooks/custom_results_1.ipynb +1093 -0
- iesopt-2.6.0/docs/notebooks/custom_results_2.ipynb +960 -0
- iesopt-2.6.0/docs/notebooks/first_model.ipynb +288 -0
- iesopt-2.6.0/docs/notebooks/pyproject.toml +2 -0
- iesopt-2.6.0/docs/notebooks/ruff.toml +1 -0
- iesopt-2.6.0/docs/pages/dev/core.md +3 -0
- iesopt-2.6.0/docs/pages/dev/general.md +153 -0
- iesopt-2.6.0/docs/pages/dev/updating.md +126 -0
- iesopt-2.6.0/docs/pages/manual/julia/.gitignore +3 -0
- iesopt-2.6.0/docs/pages/manual/julia/index.md_template +48 -0
- iesopt-2.6.0/docs/pages/manual/python/configuration.md +106 -0
- iesopt-2.6.0/docs/pages/manual/python/index.md +16 -0
- iesopt-2.6.0/docs/pages/manual/python/jump.md +10 -0
- iesopt-2.6.0/docs/pages/manual/python/model.md +10 -0
- iesopt-2.6.0/docs/pages/manual/python/results.md +6 -0
- iesopt-2.6.0/docs/pages/manual/python/util.md +10 -0
- iesopt-2.6.0/docs/pages/manual/yaml/core/.gitignore +2 -0
- iesopt-2.6.0/docs/pages/manual/yaml/core_components.md +23 -0
- iesopt-2.6.0/docs/pages/manual/yaml/index.md +38 -0
- iesopt-2.6.0/docs/pages/manual/yaml/top_level.md +529 -0
- iesopt-2.6.0/docs/pages/references/projects.md +50 -0
- iesopt-2.6.0/docs/pages/references/publications.md +84 -0
- iesopt-2.6.0/docs/pages/tutorials/.gitkeep +0 -0
- iesopt-2.6.0/docs/pages/tutorials/addons.md +3 -0
- iesopt-2.6.0/docs/pages/tutorials/templates_1.md +446 -0
- iesopt-2.6.0/docs/pages/tutorials/templates_2.md +29 -0
- iesopt-2.6.0/docs/pages/user_guides/general/best_practice.md +38 -0
- iesopt-2.6.0/docs/pages/user_guides/general/common_errors.md +7 -0
- iesopt-2.6.0/docs/pages/user_guides/general/linking_components.md +52 -0
- iesopt-2.6.0/docs/pages/user_guides/general/solvers.md +101 -0
- iesopt-2.6.0/docs/pages/user_guides/index.md +8 -0
- iesopt-2.6.0/docs/pages/user_guides/qna/dynamic_marginal_costs.md +67 -0
- iesopt-2.6.0/docs/pages/user_guides/qna/passive_charging.md +78 -0
- iesopt-2.6.0/docs/pages/user_guides/qna/profiles_sign.md +69 -0
- iesopt-2.6.0/docs/pages/user_guides/qna/snapshot_duration.md +119 -0
- iesopt-2.6.0/docs/pages/user_guides/toc_general.md +19 -0
- iesopt-2.6.0/docs/pages/user_guides/toc_qna.md +65 -0
- iesopt-2.6.0/docs/tocs/tutorials_extracting_results.md +8 -0
- iesopt-2.6.0/docs/tocs/tutorials_templates.md +8 -0
- iesopt-2.6.0/pyproject.toml +88 -0
- {iesopt-2.4.2 → iesopt-2.6.0}/src/iesopt/config.py +3 -3
- {iesopt-2.4.2 → iesopt-2.6.0}/src/iesopt/julia/setup.py +25 -13
- {iesopt-2.4.2 → iesopt-2.6.0}/src/iesopt/julia/util.py +11 -5
- iesopt-2.6.0/tag_release.sh +53 -0
- iesopt-2.6.0/tests/__init__.py +0 -0
- iesopt-2.6.0/tests/test_examples.py +321 -0
- iesopt-2.6.0/tests/test_files.py +10 -0
- iesopt-2.6.0/tests/test_julia_consistency.py +26 -0
- iesopt-2.6.0/uv.lock +2092 -0
- iesopt-2.4.2/pyproject.toml +0 -75
- {iesopt-2.4.2 → iesopt-2.6.0}/LICENSE +0 -0
- {iesopt-2.4.2 → iesopt-2.6.0}/README.md +0 -0
- {iesopt-2.4.2 → iesopt-2.6.0}/src/iesopt/__init__.py +0 -0
- {iesopt-2.4.2 → iesopt-2.6.0}/src/iesopt/iesopt.py +0 -0
- {iesopt-2.4.2 → iesopt-2.6.0}/src/iesopt/julia/__init__.py +0 -0
- {iesopt-2.4.2 → iesopt-2.6.0}/src/iesopt/julia/general.py +0 -0
- {iesopt-2.4.2 → iesopt-2.6.0}/src/iesopt/model.py +0 -0
- {iesopt-2.4.2 → iesopt-2.6.0}/src/iesopt/results.py +0 -0
- {iesopt-2.4.2 → iesopt-2.6.0}/src/iesopt/util/__init__.py +0 -0
- {iesopt-2.4.2 → iesopt-2.6.0}/src/iesopt/util/logging.py +0 -0
- {iesopt-2.4.2 → iesopt-2.6.0}/src/iesopt/util/util.py +0 -0
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# Documentation: https://EditorConfig.org
|
|
2
|
+
# Inspired by Calliope .editorconfig file
|
|
3
|
+
|
|
4
|
+
root = true
|
|
5
|
+
|
|
6
|
+
[*]
|
|
7
|
+
indent_style = space
|
|
8
|
+
indent_size = 4
|
|
9
|
+
trim_trailing_whitespace = true
|
|
10
|
+
end_of_line = lf
|
|
11
|
+
insert_final_newline = true
|
|
12
|
+
charset = utf-8
|
|
13
|
+
|
|
14
|
+
[*.yaml]
|
|
15
|
+
indent_size = 2
|
|
16
|
+
|
|
17
|
+
[*.md]
|
|
18
|
+
trim_trailing_whitespace = true
|
|
19
|
+
indent_size = 4
|
|
20
|
+
|
|
21
|
+
[LICENSE]
|
|
22
|
+
insert_final_newline = false
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
name: 'Set versions'
|
|
2
|
+
description: 'Sets env variables with various software versions used in the workflows'
|
|
3
|
+
|
|
4
|
+
runs:
|
|
5
|
+
using: 'composite'
|
|
6
|
+
steps:
|
|
7
|
+
- name: "set UV version"
|
|
8
|
+
shell: bash
|
|
9
|
+
run: echo "VERSION_UV=0.5.25" >> $GITHUB_ENV
|
|
10
|
+
|
|
11
|
+
- name: "set Julia version"
|
|
12
|
+
shell: bash
|
|
13
|
+
run: echo "VERSION_JULIA=1.11.3" >> $GITHUB_ENV
|
|
14
|
+
|
|
15
|
+
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
name: documentation
|
|
2
|
+
|
|
3
|
+
on: [push, pull_request, workflow_dispatch]
|
|
4
|
+
|
|
5
|
+
# needed to allow julia-actions/cache to delete old caches that it has created
|
|
6
|
+
permissions:
|
|
7
|
+
actions: write
|
|
8
|
+
contents: write
|
|
9
|
+
|
|
10
|
+
jobs:
|
|
11
|
+
docs:
|
|
12
|
+
runs-on: ubuntu-22.04
|
|
13
|
+
steps:
|
|
14
|
+
- uses: actions/checkout@v4
|
|
15
|
+
- uses: ./.github/actions/set-versions
|
|
16
|
+
- uses: julia-actions/setup-julia@v2
|
|
17
|
+
with:
|
|
18
|
+
version: ${{env.VERSION_JULIA}}
|
|
19
|
+
- uses: julia-actions/cache@v2
|
|
20
|
+
- uses: astral-sh/setup-uv@v5
|
|
21
|
+
with:
|
|
22
|
+
version: ${{env.VERSION_UV}}
|
|
23
|
+
- name: Sphinx build
|
|
24
|
+
run: |
|
|
25
|
+
uv run sphinx-build docs docs/_build
|
|
26
|
+
- name: Deploy to GitHub Pages
|
|
27
|
+
uses: peaceiris/actions-gh-pages@v3
|
|
28
|
+
if: ${{ github.ref == 'refs/heads/main' }}
|
|
29
|
+
with:
|
|
30
|
+
publish_branch: gh-pages
|
|
31
|
+
github_token: ${{ secrets.GITHUB_TOKEN }}
|
|
32
|
+
publish_dir: docs/_build/
|
|
33
|
+
force_orphan: true
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
name: PyPI Publish
|
|
2
|
+
on:
|
|
3
|
+
push:
|
|
4
|
+
tags:
|
|
5
|
+
- "v*.*.*"
|
|
6
|
+
|
|
7
|
+
permissions:
|
|
8
|
+
contents: read
|
|
9
|
+
id-token: write
|
|
10
|
+
|
|
11
|
+
jobs:
|
|
12
|
+
# Build it.
|
|
13
|
+
build-package:
|
|
14
|
+
name: Build & inspect package
|
|
15
|
+
runs-on: ubuntu-22.04
|
|
16
|
+
steps:
|
|
17
|
+
- uses: actions/checkout@v4
|
|
18
|
+
with:
|
|
19
|
+
fetch-depth: 0
|
|
20
|
+
- uses: hynek/build-and-inspect-python-package@v2
|
|
21
|
+
|
|
22
|
+
# Publish to PyPI.
|
|
23
|
+
pypi-publish:
|
|
24
|
+
needs: build-package
|
|
25
|
+
name: Upload release to PyPI
|
|
26
|
+
runs-on: ubuntu-22.04
|
|
27
|
+
environment: release
|
|
28
|
+
steps:
|
|
29
|
+
- name: Download packages built by build-and-inspect-python-package
|
|
30
|
+
uses: actions/download-artifact@v4
|
|
31
|
+
with:
|
|
32
|
+
name: Packages
|
|
33
|
+
path: dist
|
|
34
|
+
- name: Publish package distributions to PyPI
|
|
35
|
+
uses: pypa/gh-action-pypi-publish@release/v1
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
name: pytest
|
|
2
|
+
|
|
3
|
+
on: [push, pull_request]
|
|
4
|
+
|
|
5
|
+
# needed to allow julia-actions/cache to delete old caches that it has created
|
|
6
|
+
permissions:
|
|
7
|
+
actions: write
|
|
8
|
+
contents: read
|
|
9
|
+
|
|
10
|
+
jobs:
|
|
11
|
+
run_tests:
|
|
12
|
+
runs-on: ubuntu-22.04
|
|
13
|
+
steps:
|
|
14
|
+
- uses: actions/checkout@v4
|
|
15
|
+
- uses: ./.github/actions/set-versions
|
|
16
|
+
- uses: julia-actions/setup-julia@v2
|
|
17
|
+
with:
|
|
18
|
+
version: ${{env.VERSION_JULIA}}
|
|
19
|
+
- uses: julia-actions/cache@v2
|
|
20
|
+
- uses: astral-sh/setup-uv@v5
|
|
21
|
+
with:
|
|
22
|
+
version: ${{env.VERSION_UV}}
|
|
23
|
+
- name: Run the automated tests
|
|
24
|
+
run: uv run pytest
|
|
25
|
+
- name: Upload coverage reports to Codecov
|
|
26
|
+
uses: codecov/codecov-action@v4.0.1
|
|
27
|
+
with:
|
|
28
|
+
token: ${{ secrets.CODECOV_TOKEN }}
|
|
29
|
+
slug: ait-energy/iesopt
|
iesopt-2.6.0/.gitignore
ADDED
|
@@ -0,0 +1,176 @@
|
|
|
1
|
+
# Byte-compiled / optimized / DLL files
|
|
2
|
+
__pycache__/
|
|
3
|
+
iesoptpy/__pycache__/
|
|
4
|
+
*.py[cod]
|
|
5
|
+
*$py.class
|
|
6
|
+
|
|
7
|
+
# C extensions
|
|
8
|
+
*.so
|
|
9
|
+
|
|
10
|
+
# Distribution / packaging
|
|
11
|
+
.Python
|
|
12
|
+
build/
|
|
13
|
+
develop-eggs/
|
|
14
|
+
dist/
|
|
15
|
+
downloads/
|
|
16
|
+
eggs/
|
|
17
|
+
.eggs/
|
|
18
|
+
lib/
|
|
19
|
+
lib64/
|
|
20
|
+
parts/
|
|
21
|
+
sdist/
|
|
22
|
+
var/
|
|
23
|
+
wheels/
|
|
24
|
+
share/python-wheels/
|
|
25
|
+
*.egg-info/
|
|
26
|
+
.installed.cfg
|
|
27
|
+
*.egg
|
|
28
|
+
MANIFEST
|
|
29
|
+
|
|
30
|
+
# PyInstaller
|
|
31
|
+
# Usually these files are written by a python script from a template
|
|
32
|
+
# before PyInstaller builds the exe, so as to inject date/other infos into it.
|
|
33
|
+
*.manifest
|
|
34
|
+
*.spec
|
|
35
|
+
|
|
36
|
+
# Installer logs
|
|
37
|
+
pip-log.txt
|
|
38
|
+
pip-delete-this-directory.txt
|
|
39
|
+
|
|
40
|
+
# Unit test / coverage reports
|
|
41
|
+
htmlcov/
|
|
42
|
+
.tox/
|
|
43
|
+
.nox/
|
|
44
|
+
.coverage
|
|
45
|
+
.coverage.*
|
|
46
|
+
.cache
|
|
47
|
+
nosetests.xml
|
|
48
|
+
coverage.xml
|
|
49
|
+
*.cover
|
|
50
|
+
*.py,cover
|
|
51
|
+
.hypothesis/
|
|
52
|
+
.pytest_cache/
|
|
53
|
+
cover/
|
|
54
|
+
|
|
55
|
+
# Translations
|
|
56
|
+
*.mo
|
|
57
|
+
*.pot
|
|
58
|
+
|
|
59
|
+
# Django stuff:
|
|
60
|
+
*.log
|
|
61
|
+
local_settings.py
|
|
62
|
+
db.sqlite3
|
|
63
|
+
db.sqlite3-journal
|
|
64
|
+
|
|
65
|
+
# Flask stuff:
|
|
66
|
+
instance/
|
|
67
|
+
.webassets-cache
|
|
68
|
+
|
|
69
|
+
# Scrapy stuff:
|
|
70
|
+
.scrapy
|
|
71
|
+
|
|
72
|
+
# Sphinx documentation
|
|
73
|
+
docs/_build/
|
|
74
|
+
|
|
75
|
+
# PyBuilder
|
|
76
|
+
.pybuilder/
|
|
77
|
+
target/
|
|
78
|
+
|
|
79
|
+
# Jupyter Notebook
|
|
80
|
+
.ipynb_checkpoints
|
|
81
|
+
|
|
82
|
+
# IPython
|
|
83
|
+
profile_default/
|
|
84
|
+
ipython_config.py
|
|
85
|
+
|
|
86
|
+
# pyenv
|
|
87
|
+
# For a library or package, you might want to ignore these files since the code is
|
|
88
|
+
# intended to run in multiple environments; otherwise, check them in:
|
|
89
|
+
# .python-version
|
|
90
|
+
|
|
91
|
+
# pipenv
|
|
92
|
+
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
|
|
93
|
+
# However, in case of collaboration, if having platform-specific dependencies or dependencies
|
|
94
|
+
# having no cross-platform support, pipenv may install dependencies that don't work, or not
|
|
95
|
+
# install all needed dependencies.
|
|
96
|
+
#Pipfile.lock
|
|
97
|
+
|
|
98
|
+
# poetry
|
|
99
|
+
# Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
|
|
100
|
+
# This is especially recommended for binary packages to ensure reproducibility, and is more
|
|
101
|
+
# commonly ignored for libraries.
|
|
102
|
+
# https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
|
|
103
|
+
poetry.lock
|
|
104
|
+
|
|
105
|
+
# pdm
|
|
106
|
+
# Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
|
|
107
|
+
#pdm.lock
|
|
108
|
+
# pdm stores project-wide configurations in .pdm.toml, but it is recommended to not include it
|
|
109
|
+
# in version control.
|
|
110
|
+
# https://pdm.fming.dev/latest/usage/project/#working-with-version-control
|
|
111
|
+
.pdm.toml
|
|
112
|
+
.pdm-python
|
|
113
|
+
.pdm-build/
|
|
114
|
+
|
|
115
|
+
# PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
|
|
116
|
+
__pypackages__/
|
|
117
|
+
|
|
118
|
+
# Celery stuff
|
|
119
|
+
celerybeat-schedule
|
|
120
|
+
celerybeat.pid
|
|
121
|
+
|
|
122
|
+
# SageMath parsed files
|
|
123
|
+
*.sage.py
|
|
124
|
+
|
|
125
|
+
# Environments
|
|
126
|
+
.env
|
|
127
|
+
.venv
|
|
128
|
+
env/
|
|
129
|
+
venv/
|
|
130
|
+
ENV/
|
|
131
|
+
env.bak/
|
|
132
|
+
venv.bak/
|
|
133
|
+
|
|
134
|
+
# Spyder project settings
|
|
135
|
+
.spyderproject
|
|
136
|
+
.spyproject
|
|
137
|
+
|
|
138
|
+
# Rope project settings
|
|
139
|
+
.ropeproject
|
|
140
|
+
|
|
141
|
+
# mkdocs documentation
|
|
142
|
+
/site
|
|
143
|
+
|
|
144
|
+
# mypy
|
|
145
|
+
.mypy_cache/
|
|
146
|
+
.dmypy.json
|
|
147
|
+
dmypy.json
|
|
148
|
+
|
|
149
|
+
# Pyre type checker
|
|
150
|
+
.pyre/
|
|
151
|
+
|
|
152
|
+
# pytype static type analyzer
|
|
153
|
+
.pytype/
|
|
154
|
+
|
|
155
|
+
# Cython debug symbols
|
|
156
|
+
cython_debug/
|
|
157
|
+
|
|
158
|
+
# PyCharm
|
|
159
|
+
# JetBrains specific template is maintained in a separate JetBrains.gitignore that can
|
|
160
|
+
# be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
|
|
161
|
+
# and can be added to the global gitignore or merged into this file. For a more nuclear
|
|
162
|
+
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
|
|
163
|
+
.idea/
|
|
164
|
+
|
|
165
|
+
# Ruff
|
|
166
|
+
.ruff_cache/
|
|
167
|
+
|
|
168
|
+
# Prevent tracking any JuliaPkg files
|
|
169
|
+
**/juliapkg.json
|
|
170
|
+
|
|
171
|
+
# Prevent tracking root folder Python files
|
|
172
|
+
/*.py
|
|
173
|
+
|
|
174
|
+
# Temp. directory
|
|
175
|
+
tmp_test/
|
|
176
|
+
**/tmp_test/
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
default_language_version:
|
|
2
|
+
python: python3
|
|
3
|
+
|
|
4
|
+
repos:
|
|
5
|
+
- repo: https://github.com/astral-sh/ruff-pre-commit
|
|
6
|
+
rev: v0.9.4
|
|
7
|
+
hooks:
|
|
8
|
+
- id: ruff
|
|
9
|
+
types_or: [python, pyi, jupyter] # make sure to include jupyter files
|
|
10
|
+
args: [--fix, --exit-non-zero-on-fix]
|
|
11
|
+
- id: ruff-format
|
|
12
|
+
types_or: [python, pyi, jupyter]
|
|
13
|
+
|
|
14
|
+
- repo: https://github.com/codespell-project/codespell
|
|
15
|
+
rev: v2.4.1
|
|
16
|
+
hooks:
|
|
17
|
+
- id: codespell
|
|
18
|
+
additional_dependencies:
|
|
19
|
+
- tomli # allows checking TOML files
|
|
20
|
+
|
|
21
|
+
ci: # https://pre-commit.ci/
|
|
22
|
+
autofix_prs: false
|
|
23
|
+
autoupdate_schedule: weekly
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
3.13
|
|
File without changes
|
|
@@ -1,33 +1,30 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
2
|
Name: iesopt
|
|
3
|
-
Version: 2.
|
|
3
|
+
Version: 2.6.0
|
|
4
4
|
Summary: IESopt -- an Integrated Energy System Optimization framework.
|
|
5
|
+
Project-URL: Homepage, https://github.com/ait-energy/iesopt
|
|
6
|
+
Project-URL: Documentation, https://ait-energy.github.io/iesopt
|
|
7
|
+
Project-URL: Repository, https://github.com/ait-energy/iesopt
|
|
8
|
+
Project-URL: Issues, https://github.com/ait-energy/iesopt/issues
|
|
9
|
+
Author-email: Stefan Strömer <8915976+sstroemer@users.noreply.github.com>
|
|
10
|
+
Maintainer-email: Stefan Strömer <8915976+sstroemer@users.noreply.github.com>
|
|
5
11
|
License: MIT
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
Author-email: 8915976+sstroemer@users.noreply.github.com
|
|
9
|
-
Maintainer: Stefan Strömer
|
|
10
|
-
Maintainer-email: 8915976+sstroemer@users.noreply.github.com
|
|
11
|
-
Requires-Python: >=3.11,<4.0
|
|
12
|
+
License-File: LICENSE
|
|
13
|
+
Keywords: energy model,integrated energy systems,modelling,optimization
|
|
12
14
|
Classifier: Development Status :: 5 - Production/Stable
|
|
13
15
|
Classifier: Intended Audience :: Science/Research
|
|
14
16
|
Classifier: License :: OSI Approved :: MIT License
|
|
15
|
-
Classifier: Programming Language :: Python :: 3
|
|
17
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
16
18
|
Classifier: Programming Language :: Python :: 3.11
|
|
17
19
|
Classifier: Programming Language :: Python :: 3.12
|
|
18
20
|
Classifier: Programming Language :: Python :: 3.13
|
|
19
|
-
|
|
20
|
-
Requires-Dist: juliacall
|
|
21
|
-
Requires-Dist: juliapkg
|
|
22
|
-
Requires-Dist: pandas
|
|
23
|
-
Requires-Dist: pathlib
|
|
24
|
-
Requires-Dist: pydantic
|
|
25
|
-
Requires-Dist: python-dotenv
|
|
26
|
-
Project-URL: Changelog, https://github.com/ait-energy/iesopt/releases
|
|
27
|
-
Project-URL: Documentation, https://ait-energy.github.io/iesopt
|
|
28
|
-
Project-URL: Homepage, https://github.com/ait-energy/iesopt
|
|
29
|
-
Project-URL: Issues, https://github.com/ait-energy/iesopt/issues
|
|
30
|
-
Project-URL: Repository, https://github.com/ait-energy/iesopt
|
|
21
|
+
Requires-Python: >=3.10
|
|
22
|
+
Requires-Dist: juliacall==0.9.24
|
|
23
|
+
Requires-Dist: juliapkg==0.1.15
|
|
24
|
+
Requires-Dist: pandas>=2.0.0
|
|
25
|
+
Requires-Dist: pathlib>=1.0.0
|
|
26
|
+
Requires-Dist: pydantic>=2.7.4
|
|
27
|
+
Requires-Dist: python-dotenv>=1.0.1
|
|
31
28
|
Description-Content-Type: text/markdown
|
|
32
29
|
|
|
33
30
|
# IESopt: Integrated Energy System Optimization
|
|
@@ -52,4 +49,3 @@ supported by specialized implementation, and can be combined into complex system
|
|
|
52
49
|
understanding of mathematical modeling or proficiency in any coding-language.
|
|
53
50
|
|
|
54
51
|
> Note: We are currently merging the documentation which was split into three locations and is also done (for a large part) in Julia, into this repository. This is a work in progress and will be updated over the next weeks.
|
|
55
|
-
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# Minimal makefile for Sphinx documentation
|
|
2
|
+
#
|
|
3
|
+
|
|
4
|
+
# You can set these variables from the command line, and also
|
|
5
|
+
# from the environment for the first two.
|
|
6
|
+
SPHINXOPTS ?=
|
|
7
|
+
SPHINXBUILD ?= sphinx-build
|
|
8
|
+
SOURCEDIR = .
|
|
9
|
+
BUILDDIR = _build
|
|
10
|
+
|
|
11
|
+
# Put it first so that "make" without argument is like "make help".
|
|
12
|
+
help:
|
|
13
|
+
@$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
|
|
14
|
+
|
|
15
|
+
.PHONY: help Makefile
|
|
16
|
+
|
|
17
|
+
# Catch-all target: route all unknown targets to Sphinx using the new
|
|
18
|
+
# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS).
|
|
19
|
+
%: Makefile
|
|
20
|
+
@$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
# See: DocumenterInterLinks.jl
|
|
2
|
+
# > https://github.com/JuliaDocs/DocumenterInterLinks.jl/
|
|
3
|
+
# > "sphinx-to-documenter-links"
|
|
4
|
+
from sphinx.domains import Domain, ObjType
|
|
5
|
+
from sphinx.roles import XRefRole
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class JuliaDomain(Domain):
|
|
9
|
+
"""A minimal Julia language domain."""
|
|
10
|
+
|
|
11
|
+
name = "jl"
|
|
12
|
+
label = "Julia"
|
|
13
|
+
object_types = {
|
|
14
|
+
# name => (localized name, *roles)
|
|
15
|
+
"macro": ObjType("macro", "macro", "obj"),
|
|
16
|
+
"keyword": ObjType("keyword", "keyword", "obj"),
|
|
17
|
+
"function": ObjType("function", "func", "function", "obj"),
|
|
18
|
+
"method": ObjType("method", "meth", "method", "obj"),
|
|
19
|
+
"type": ObjType("type", "type", "obj"),
|
|
20
|
+
"module": ObjType("module", "mod", "module", "obj"),
|
|
21
|
+
"constant": ObjType("constant", "const", "constant", "obj"),
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
roles = {
|
|
25
|
+
"macro": XRefRole(),
|
|
26
|
+
"keyword": XRefRole(),
|
|
27
|
+
"function": XRefRole(fix_parens=True),
|
|
28
|
+
"func": XRefRole(fix_parens=True),
|
|
29
|
+
"method": XRefRole(),
|
|
30
|
+
"meth": XRefRole(),
|
|
31
|
+
"type": XRefRole(),
|
|
32
|
+
"module": XRefRole(),
|
|
33
|
+
"mod": XRefRole(),
|
|
34
|
+
"constant": XRefRole(),
|
|
35
|
+
"const": XRefRole(),
|
|
36
|
+
"obj": XRefRole(),
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
def resolve_any_xref(self, *args):
|
|
40
|
+
return []
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
def setup(app):
|
|
44
|
+
app.add_domain(JuliaDomain)
|
|
File without changes
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/*
|
|
2
|
+
Format code related blocks from MyST-NB
|
|
3
|
+
- Standard background color
|
|
4
|
+
- stderr and similar blocks with accent color
|
|
5
|
+
- Stream and text blocks with muted color
|
|
6
|
+
*/
|
|
7
|
+
div.cell_input.docutils.container {
|
|
8
|
+
background-color: hsl(var(--background)) !important;
|
|
9
|
+
}
|
|
10
|
+
div.output.stderr > div.highlight, div.output.stdout > div.highlight {
|
|
11
|
+
background-color: hsl(var(--accent)) !important;
|
|
12
|
+
}
|
|
13
|
+
div.output.stream, div.output.text_plain, div.output.text_html {
|
|
14
|
+
background-color: hsl(var(--muted)) !important;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
/*
|
|
18
|
+
Format tables (needed to render pd.DataFrames):
|
|
19
|
+
- Standard background color
|
|
20
|
+
- Alternate row background color (odd rows)
|
|
21
|
+
- Text color to foreground color
|
|
22
|
+
- Hover row background color based on destructive color (50% opacity)
|
|
23
|
+
*/
|
|
24
|
+
div.cell_output tbody {
|
|
25
|
+
background: hsl(var(--background)) !important;
|
|
26
|
+
}
|
|
27
|
+
div.cell_output tbody tr:nth-child(odd) {
|
|
28
|
+
background: hsl(var(--muted)) !important;
|
|
29
|
+
}
|
|
30
|
+
div.cell_output table {
|
|
31
|
+
color: hsl(var(--foreground)) !important;
|
|
32
|
+
}
|
|
33
|
+
div.cell_output tbody tr:hover {
|
|
34
|
+
background: hsl(var(--destructive) / 0.5) !important;
|
|
35
|
+
}
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
import sys
|
|
2
|
+
from pathlib import Path
|
|
3
|
+
import importlib.metadata
|
|
4
|
+
|
|
5
|
+
from sphinxawesome_theme.postprocess import Icons
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
# -- Setup -------------------------------------------------------------------
|
|
9
|
+
|
|
10
|
+
DOCS = Path(__file__).parent
|
|
11
|
+
sys.path.insert(0, str((DOCS / "_extensions").resolve()))
|
|
12
|
+
sys.path.insert(0, str((DOCS / ".." / "src").resolve()))
|
|
13
|
+
sys.path.insert(0, str((DOCS / "..").resolve()))
|
|
14
|
+
|
|
15
|
+
CREATE_DYNAMIC_DOCSTRINGS = [
|
|
16
|
+
# ("test", "getfield", "some_foo(...)")
|
|
17
|
+
# and then use:
|
|
18
|
+
# ```{include} ../../../dynamic/out/test.md
|
|
19
|
+
# ```
|
|
20
|
+
]
|
|
21
|
+
if len(CREATE_DYNAMIC_DOCSTRINGS) > 0:
|
|
22
|
+
import docs.dynamic.create as ddcreate
|
|
23
|
+
|
|
24
|
+
ddcreate.create_md(CREATE_DYNAMIC_DOCSTRINGS)
|
|
25
|
+
|
|
26
|
+
import docs.dynamic.core as ddcore # noqa: E402
|
|
27
|
+
|
|
28
|
+
ddcore._dyn_core_create_md("Connection")
|
|
29
|
+
ddcore._dyn_core_create_md("Decision")
|
|
30
|
+
ddcore._dyn_core_create_md("Node")
|
|
31
|
+
ddcore._dyn_core_create_md("Profile")
|
|
32
|
+
ddcore._dyn_core_create_md("Unit")
|
|
33
|
+
|
|
34
|
+
import docs.dynamic.julia # noqa: E402, F401
|
|
35
|
+
|
|
36
|
+
# -- General -----------------------------------------------------------------
|
|
37
|
+
|
|
38
|
+
project = "IESopt"
|
|
39
|
+
copyright = "AIT Austrian Institute of Technology GmbH"
|
|
40
|
+
author = "S. Strömer (@sstroemer), D. Schwabeneder (@daschw)"
|
|
41
|
+
version = str(importlib.metadata.version("iesopt"))
|
|
42
|
+
release = version
|
|
43
|
+
|
|
44
|
+
extensions = [
|
|
45
|
+
# "myst_parser",
|
|
46
|
+
"myst_nb",
|
|
47
|
+
"sphinx.ext.autodoc",
|
|
48
|
+
"sphinx.ext.intersphinx",
|
|
49
|
+
"sphinx.ext.githubpages",
|
|
50
|
+
"sphinx.ext.viewcode",
|
|
51
|
+
"sphinx.ext.autosectionlabel",
|
|
52
|
+
"sphinx.ext.napoleon",
|
|
53
|
+
"sphinx_togglebutton",
|
|
54
|
+
"julia_domain",
|
|
55
|
+
"sphinx.ext.mathjax",
|
|
56
|
+
]
|
|
57
|
+
|
|
58
|
+
exclude_patterns = ["_build", "Thumbs.db", ".DS_Store", "**.ipynb_checkpoints"]
|
|
59
|
+
source_suffix = {
|
|
60
|
+
".rst": "restructuredtext",
|
|
61
|
+
".ipynb": "myst-nb",
|
|
62
|
+
".myst": "myst-nb",
|
|
63
|
+
}
|
|
64
|
+
nb_custom_formats = {
|
|
65
|
+
".md": ["jupytext.reads", {"fmt": "myst"}],
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
intersphinx_mapping = {
|
|
69
|
+
"IESopt": ("https://ait-energy.github.io/IESopt.jl/dev", None),
|
|
70
|
+
"python": ("https://docs.python.org/3", None),
|
|
71
|
+
"pandas": ("http://pandas.pydata.org/pandas-docs/dev", None),
|
|
72
|
+
}
|
|
73
|
+
intersphinx_disabled_reftypes = [""]
|
|
74
|
+
|
|
75
|
+
nb_execution_mode = "off"
|
|
76
|
+
|
|
77
|
+
# -- Options for HTML output -------------------------------------------------
|
|
78
|
+
|
|
79
|
+
html_theme = "sphinxawesome_theme"
|
|
80
|
+
html_static_path = ["_static"]
|
|
81
|
+
html_css_files = ["custom.css"]
|
|
82
|
+
|
|
83
|
+
html_permalinks_icon = Icons.permalinks_icon
|
|
84
|
+
|
|
85
|
+
pygments_style = "default"
|
|
86
|
+
pygments_style_dark = "lightbulb"
|
|
87
|
+
|
|
88
|
+
html_theme_options = {
|
|
89
|
+
"show_breadcrumbs": True,
|
|
90
|
+
"show_scrolltop": True,
|
|
91
|
+
"awesome_external_links": True,
|
|
92
|
+
"awesome_headerlinks": True,
|
|
93
|
+
"show_prev_next": False,
|
|
94
|
+
"main_nav_links": {
|
|
95
|
+
"Home": "index",
|
|
96
|
+
"GitHub": "https://github.com/ait-energy/iesopt",
|
|
97
|
+
"IESopt.jl": "https://github.com/ait-energy/IESopt.jl",
|
|
98
|
+
},
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
html_context = {
|
|
102
|
+
"default_mode": "light",
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
# -- MyST & autodoc configuration --------------------------------------------
|
|
106
|
+
|
|
107
|
+
myst_enable_extensions = ["dollarmath", "amsmath", "colon_fence", "fieldlist"]
|
|
108
|
+
myst_heading_anchors = 3
|
|
109
|
+
autodoc_packages = ["../src/iesopt"]
|
|
110
|
+
suppress_warnings = ["autosectionlabel.*"]
|
|
111
|
+
autosection_label_prefix_document = True
|