flixopt 1.0.12__py3-none-any.whl → 2.0.1__py3-none-any.whl
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.
Potentially problematic release.
This version of flixopt might be problematic. Click here for more details.
- docs/examples/00-Minimal Example.md +5 -0
- docs/examples/01-Basic Example.md +5 -0
- docs/examples/02-Complex Example.md +10 -0
- docs/examples/03-Calculation Modes.md +5 -0
- docs/examples/index.md +5 -0
- docs/faq/contribute.md +49 -0
- docs/faq/index.md +3 -0
- docs/images/architecture_flixOpt-pre2.0.0.png +0 -0
- docs/images/architecture_flixOpt.png +0 -0
- docs/images/flixopt-icon.svg +1 -0
- docs/javascripts/mathjax.js +18 -0
- docs/release-notes/_template.txt +32 -0
- docs/release-notes/index.md +7 -0
- docs/release-notes/v2.0.0.md +93 -0
- docs/release-notes/v2.0.1.md +12 -0
- docs/user-guide/Mathematical Notation/Bus.md +33 -0
- docs/user-guide/Mathematical Notation/Effects, Penalty & Objective.md +132 -0
- docs/user-guide/Mathematical Notation/Flow.md +26 -0
- docs/user-guide/Mathematical Notation/LinearConverter.md +21 -0
- docs/user-guide/Mathematical Notation/Piecewise.md +49 -0
- docs/user-guide/Mathematical Notation/Storage.md +44 -0
- docs/user-guide/Mathematical Notation/index.md +22 -0
- docs/user-guide/Mathematical Notation/others.md +3 -0
- docs/user-guide/index.md +124 -0
- {flixOpt → flixopt}/__init__.py +5 -2
- {flixOpt → flixopt}/aggregation.py +113 -140
- flixopt/calculation.py +455 -0
- {flixOpt → flixopt}/commons.py +7 -4
- flixopt/components.py +630 -0
- {flixOpt → flixopt}/config.py +9 -8
- {flixOpt → flixopt}/config.yaml +3 -3
- flixopt/core.py +970 -0
- flixopt/effects.py +386 -0
- flixopt/elements.py +534 -0
- flixopt/features.py +1042 -0
- flixopt/flow_system.py +409 -0
- flixopt/interface.py +265 -0
- flixopt/io.py +308 -0
- flixopt/linear_converters.py +331 -0
- flixopt/plotting.py +1340 -0
- flixopt/results.py +898 -0
- flixopt/solvers.py +77 -0
- flixopt/structure.py +630 -0
- flixopt/utils.py +62 -0
- flixopt-2.0.1.dist-info/METADATA +145 -0
- flixopt-2.0.1.dist-info/RECORD +57 -0
- {flixopt-1.0.12.dist-info → flixopt-2.0.1.dist-info}/WHEEL +1 -1
- flixopt-2.0.1.dist-info/top_level.txt +6 -0
- pics/architecture_flixOpt-pre2.0.0.png +0 -0
- pics/architecture_flixOpt.png +0 -0
- pics/flixopt-icon.svg +1 -0
- pics/pics.pptx +0 -0
- scripts/gen_ref_pages.py +54 -0
- site/release-notes/_template.txt +32 -0
- flixOpt/calculation.py +0 -629
- flixOpt/components.py +0 -614
- flixOpt/core.py +0 -182
- flixOpt/effects.py +0 -410
- flixOpt/elements.py +0 -489
- flixOpt/features.py +0 -942
- flixOpt/flow_system.py +0 -351
- flixOpt/interface.py +0 -203
- flixOpt/linear_converters.py +0 -325
- flixOpt/math_modeling.py +0 -1145
- flixOpt/plotting.py +0 -712
- flixOpt/results.py +0 -563
- flixOpt/solvers.py +0 -21
- flixOpt/structure.py +0 -733
- flixOpt/utils.py +0 -134
- flixopt-1.0.12.dist-info/METADATA +0 -174
- flixopt-1.0.12.dist-info/RECORD +0 -29
- flixopt-1.0.12.dist-info/top_level.txt +0 -3
- {flixopt-1.0.12.dist-info → flixopt-2.0.1.dist-info/licenses}/LICENSE +0 -0
scripts/gen_ref_pages.py
ADDED
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
"""Generate the code reference pages and navigation."""
|
|
2
|
+
|
|
3
|
+
import sys
|
|
4
|
+
from pathlib import Path
|
|
5
|
+
|
|
6
|
+
import mkdocs_gen_files
|
|
7
|
+
|
|
8
|
+
# Add the project root to sys.path to ensure modules can be imported
|
|
9
|
+
root = Path(__file__).parent.parent
|
|
10
|
+
sys.path.insert(0, str(root))
|
|
11
|
+
|
|
12
|
+
nav = mkdocs_gen_files.Nav()
|
|
13
|
+
|
|
14
|
+
src = root / 'flixopt'
|
|
15
|
+
api_dir = 'api-reference'
|
|
16
|
+
|
|
17
|
+
for path in sorted(src.rglob('*.py')):
|
|
18
|
+
module_path = path.relative_to(src).with_suffix('')
|
|
19
|
+
doc_path = path.relative_to(src).with_suffix('.md')
|
|
20
|
+
full_doc_path = Path(api_dir, doc_path)
|
|
21
|
+
|
|
22
|
+
parts = tuple(module_path.parts)
|
|
23
|
+
|
|
24
|
+
if parts[-1] == '__init__':
|
|
25
|
+
parts = parts[:-1]
|
|
26
|
+
if not parts:
|
|
27
|
+
continue # Skip the root __init__.py
|
|
28
|
+
doc_path = doc_path.with_name('index.md')
|
|
29
|
+
full_doc_path = full_doc_path.with_name('index.md')
|
|
30
|
+
elif parts[-1] == '__main__' or parts[-1].startswith('_'):
|
|
31
|
+
continue
|
|
32
|
+
|
|
33
|
+
# Only add to navigation if there are actual parts
|
|
34
|
+
if parts:
|
|
35
|
+
nav[parts] = doc_path.as_posix()
|
|
36
|
+
|
|
37
|
+
# Generate documentation file - always using the flixopt prefix
|
|
38
|
+
with mkdocs_gen_files.open(full_doc_path, 'w') as fd:
|
|
39
|
+
# Use 'flixopt.' prefix for all module references
|
|
40
|
+
module_id = 'flixopt.' + '.'.join(parts)
|
|
41
|
+
fd.write(f'::: {module_id}\n options:\n inherited_members: true\n')
|
|
42
|
+
|
|
43
|
+
mkdocs_gen_files.set_edit_path(full_doc_path, path.relative_to(root))
|
|
44
|
+
|
|
45
|
+
# Create an index file for the API reference
|
|
46
|
+
with mkdocs_gen_files.open(f'{api_dir}/index.md', 'w') as index_file:
|
|
47
|
+
index_file.write('# API Reference\n\n')
|
|
48
|
+
index_file.write(
|
|
49
|
+
'This section contains the documentation for all modules and classes in flixopt.\n'
|
|
50
|
+
'For more information on how to use the classes and functions, see the [Concepts & Math](../concepts-and-math/index.md) section.\n'
|
|
51
|
+
)
|
|
52
|
+
|
|
53
|
+
with mkdocs_gen_files.open(f'{api_dir}/SUMMARY.md', 'w') as nav_file:
|
|
54
|
+
nav_file.writelines(nav.build_literate_nav())
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
# Release v{version}
|
|
2
|
+
|
|
3
|
+
**Release Date:** YYYY-MM-DD
|
|
4
|
+
|
|
5
|
+
## What's New
|
|
6
|
+
|
|
7
|
+
* Feature 1 - Description
|
|
8
|
+
* Feature 2 - Description
|
|
9
|
+
|
|
10
|
+
## Improvements
|
|
11
|
+
|
|
12
|
+
* Improvement 1 - Description
|
|
13
|
+
* Improvement 2 - Description
|
|
14
|
+
|
|
15
|
+
## Bug Fixes
|
|
16
|
+
|
|
17
|
+
* Fixed issue with X
|
|
18
|
+
* Resolved problem with Y
|
|
19
|
+
|
|
20
|
+
## Breaking Changes
|
|
21
|
+
|
|
22
|
+
* Change 1 - Migration instructions
|
|
23
|
+
* Change 2 - Migration instructions
|
|
24
|
+
|
|
25
|
+
## Deprecations
|
|
26
|
+
|
|
27
|
+
* Feature X will be removed in v{next_version}
|
|
28
|
+
|
|
29
|
+
## Dependencies
|
|
30
|
+
|
|
31
|
+
* Added dependency X v1.2.3
|
|
32
|
+
* Updated dependency Y to v2.0.0
|