flixopt 1.0.12__py3-none-any.whl → 2.0.0__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.

Files changed (72) hide show
  1. docs/examples/00-Minimal Example.md +5 -0
  2. docs/examples/01-Basic Example.md +5 -0
  3. docs/examples/02-Complex Example.md +10 -0
  4. docs/examples/03-Calculation Modes.md +5 -0
  5. docs/examples/index.md +5 -0
  6. docs/faq/contribute.md +49 -0
  7. docs/faq/index.md +3 -0
  8. docs/images/architecture_flixOpt-pre2.0.0.png +0 -0
  9. docs/images/architecture_flixOpt.png +0 -0
  10. docs/images/flixopt-icon.svg +1 -0
  11. docs/javascripts/mathjax.js +18 -0
  12. docs/release-notes/_template.txt +32 -0
  13. docs/release-notes/index.md +7 -0
  14. docs/release-notes/v2.0.0.md +93 -0
  15. docs/user-guide/Mathematical Notation/Bus.md +33 -0
  16. docs/user-guide/Mathematical Notation/Effects, Penalty & Objective.md +132 -0
  17. docs/user-guide/Mathematical Notation/Flow.md +26 -0
  18. docs/user-guide/Mathematical Notation/LinearConverter.md +21 -0
  19. docs/user-guide/Mathematical Notation/Piecewise.md +49 -0
  20. docs/user-guide/Mathematical Notation/Storage.md +44 -0
  21. docs/user-guide/Mathematical Notation/index.md +22 -0
  22. docs/user-guide/Mathematical Notation/others.md +3 -0
  23. docs/user-guide/index.md +124 -0
  24. {flixOpt → flixopt}/__init__.py +5 -2
  25. {flixOpt → flixopt}/aggregation.py +113 -140
  26. flixopt/calculation.py +455 -0
  27. {flixOpt → flixopt}/commons.py +7 -4
  28. flixopt/components.py +630 -0
  29. {flixOpt → flixopt}/config.py +9 -8
  30. {flixOpt → flixopt}/config.yaml +3 -3
  31. flixopt/core.py +914 -0
  32. flixopt/effects.py +386 -0
  33. flixopt/elements.py +529 -0
  34. flixopt/features.py +1042 -0
  35. flixopt/flow_system.py +409 -0
  36. flixopt/interface.py +265 -0
  37. flixopt/io.py +308 -0
  38. flixopt/linear_converters.py +331 -0
  39. flixopt/plotting.py +1337 -0
  40. flixopt/results.py +898 -0
  41. flixopt/solvers.py +77 -0
  42. flixopt/structure.py +630 -0
  43. flixopt/utils.py +62 -0
  44. flixopt-2.0.0.dist-info/METADATA +145 -0
  45. flixopt-2.0.0.dist-info/RECORD +56 -0
  46. {flixopt-1.0.12.dist-info → flixopt-2.0.0.dist-info}/WHEEL +1 -1
  47. flixopt-2.0.0.dist-info/top_level.txt +6 -0
  48. pics/architecture_flixOpt-pre2.0.0.png +0 -0
  49. pics/architecture_flixOpt.png +0 -0
  50. pics/flixopt-icon.svg +1 -0
  51. pics/pics.pptx +0 -0
  52. scripts/gen_ref_pages.py +54 -0
  53. site/release-notes/_template.txt +32 -0
  54. flixOpt/calculation.py +0 -629
  55. flixOpt/components.py +0 -614
  56. flixOpt/core.py +0 -182
  57. flixOpt/effects.py +0 -410
  58. flixOpt/elements.py +0 -489
  59. flixOpt/features.py +0 -942
  60. flixOpt/flow_system.py +0 -351
  61. flixOpt/interface.py +0 -203
  62. flixOpt/linear_converters.py +0 -325
  63. flixOpt/math_modeling.py +0 -1145
  64. flixOpt/plotting.py +0 -712
  65. flixOpt/results.py +0 -563
  66. flixOpt/solvers.py +0 -21
  67. flixOpt/structure.py +0 -733
  68. flixOpt/utils.py +0 -134
  69. flixopt-1.0.12.dist-info/METADATA +0 -174
  70. flixopt-1.0.12.dist-info/RECORD +0 -29
  71. flixopt-1.0.12.dist-info/top_level.txt +0 -3
  72. {flixopt-1.0.12.dist-info → flixopt-2.0.0.dist-info/licenses}/LICENSE +0 -0
@@ -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