flixopt 2.1.10__py3-none-any.whl → 2.2.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 (49) hide show
  1. flixopt/__init__.py +0 -2
  2. flixopt/calculation.py +2 -2
  3. flixopt/components.py +1 -1
  4. flixopt/config.py +486 -193
  5. flixopt/elements.py +5 -5
  6. flixopt/features.py +6 -6
  7. flixopt/flow_system.py +2 -1
  8. flixopt/interface.py +4 -4
  9. flixopt/io.py +6 -4
  10. flixopt/results.py +1 -1
  11. {flixopt-2.1.10.dist-info → flixopt-2.2.0.dist-info}/METADATA +6 -8
  12. flixopt-2.2.0.dist-info/RECORD +25 -0
  13. flixopt-2.2.0.dist-info/top_level.txt +1 -0
  14. docs/examples/00-Minimal Example.md +0 -5
  15. docs/examples/01-Basic Example.md +0 -5
  16. docs/examples/02-Complex Example.md +0 -10
  17. docs/examples/03-Calculation Modes.md +0 -5
  18. docs/examples/index.md +0 -5
  19. docs/faq/contribute.md +0 -61
  20. docs/faq/index.md +0 -3
  21. docs/images/architecture_flixOpt-pre2.0.0.png +0 -0
  22. docs/images/architecture_flixOpt.png +0 -0
  23. docs/images/flixopt-icon.svg +0 -1
  24. docs/javascripts/mathjax.js +0 -18
  25. docs/user-guide/Mathematical Notation/Bus.md +0 -33
  26. docs/user-guide/Mathematical Notation/Effects, Penalty & Objective.md +0 -132
  27. docs/user-guide/Mathematical Notation/Flow.md +0 -26
  28. docs/user-guide/Mathematical Notation/InvestParameters.md +0 -3
  29. docs/user-guide/Mathematical Notation/LinearConverter.md +0 -21
  30. docs/user-guide/Mathematical Notation/OnOffParameters.md +0 -3
  31. docs/user-guide/Mathematical Notation/Piecewise.md +0 -49
  32. docs/user-guide/Mathematical Notation/Storage.md +0 -44
  33. docs/user-guide/Mathematical Notation/index.md +0 -22
  34. docs/user-guide/Mathematical Notation/others.md +0 -3
  35. docs/user-guide/index.md +0 -124
  36. flixopt/config.yaml +0 -10
  37. flixopt-2.1.10.dist-info/RECORD +0 -57
  38. flixopt-2.1.10.dist-info/top_level.txt +0 -5
  39. pics/architecture_flixOpt-pre2.0.0.png +0 -0
  40. pics/architecture_flixOpt.png +0 -0
  41. pics/flixOpt_plotting.jpg +0 -0
  42. pics/flixopt-icon.svg +0 -1
  43. pics/pics.pptx +0 -0
  44. scripts/extract_changelog.py +0 -148
  45. scripts/extract_release_notes.py +0 -45
  46. scripts/gen_ref_pages.py +0 -54
  47. tests/ressources/Zeitreihen2020.csv +0 -35137
  48. {flixopt-2.1.10.dist-info → flixopt-2.2.0.dist-info}/WHEEL +0 -0
  49. {flixopt-2.1.10.dist-info → flixopt-2.2.0.dist-info}/licenses/LICENSE +0 -0
flixopt/__init__.py CHANGED
@@ -35,5 +35,3 @@ from .commons import (
35
35
  results,
36
36
  solvers,
37
37
  )
38
-
39
- CONFIG.load_config()
flixopt/calculation.py CHANGED
@@ -91,13 +91,13 @@ class Calculation:
91
91
  model.label_of_element: float(model.size.solution)
92
92
  for component in self.flow_system.components.values()
93
93
  for model in component.model.all_sub_models
94
- if isinstance(model, InvestmentModel) and float(model.size.solution) >= CONFIG.modeling.EPSILON
94
+ if isinstance(model, InvestmentModel) and float(model.size.solution) >= CONFIG.Modeling.epsilon
95
95
  },
96
96
  'Not invested': {
97
97
  model.label_of_element: float(model.size.solution)
98
98
  for component in self.flow_system.components.values()
99
99
  for model in component.model.all_sub_models
100
- if isinstance(model, InvestmentModel) and float(model.size.solution) < CONFIG.modeling.EPSILON
100
+ if isinstance(model, InvestmentModel) and float(model.size.solution) < CONFIG.Modeling.epsilon
101
101
  },
102
102
  },
103
103
  'Buses with excess': [
flixopt/components.py CHANGED
@@ -791,7 +791,7 @@ class StorageModel(ComponentModel):
791
791
  charge_state.isel(time=slice(1, None))
792
792
  == charge_state.isel(time=slice(None, -1)) * ((1 - rel_loss) ** hours_per_step)
793
793
  + charge_rate * eff_charge * hours_per_step
794
- - discharge_rate * eff_discharge * hours_per_step,
794
+ - discharge_rate * hours_per_step / eff_discharge,
795
795
  name=f'{self.label_full}|charge_state',
796
796
  ),
797
797
  'charge_state',