flixopt 3.2.0__tar.gz → 3.2.1__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.

Potentially problematic release.


This version of flixopt might be problematic. Click here for more details.

Files changed (33) hide show
  1. {flixopt-3.2.0 → flixopt-3.2.1}/CHANGELOG.md +14 -0
  2. {flixopt-3.2.0/flixopt.egg-info → flixopt-3.2.1}/PKG-INFO +2 -2
  3. {flixopt-3.2.0 → flixopt-3.2.1}/flixopt/flow_system.py +10 -2
  4. {flixopt-3.2.0 → flixopt-3.2.1/flixopt.egg-info}/PKG-INFO +2 -2
  5. {flixopt-3.2.0 → flixopt-3.2.1}/flixopt.egg-info/requires.txt +1 -1
  6. {flixopt-3.2.0 → flixopt-3.2.1}/pyproject.toml +1 -1
  7. {flixopt-3.2.0 → flixopt-3.2.1}/LICENSE +0 -0
  8. {flixopt-3.2.0 → flixopt-3.2.1}/MANIFEST.in +0 -0
  9. {flixopt-3.2.0 → flixopt-3.2.1}/README.md +0 -0
  10. {flixopt-3.2.0 → flixopt-3.2.1}/flixopt/__init__.py +0 -0
  11. {flixopt-3.2.0 → flixopt-3.2.1}/flixopt/aggregation.py +0 -0
  12. {flixopt-3.2.0 → flixopt-3.2.1}/flixopt/calculation.py +0 -0
  13. {flixopt-3.2.0 → flixopt-3.2.1}/flixopt/color_processing.py +0 -0
  14. {flixopt-3.2.0 → flixopt-3.2.1}/flixopt/commons.py +0 -0
  15. {flixopt-3.2.0 → flixopt-3.2.1}/flixopt/components.py +0 -0
  16. {flixopt-3.2.0 → flixopt-3.2.1}/flixopt/config.py +0 -0
  17. {flixopt-3.2.0 → flixopt-3.2.1}/flixopt/core.py +0 -0
  18. {flixopt-3.2.0 → flixopt-3.2.1}/flixopt/effects.py +0 -0
  19. {flixopt-3.2.0 → flixopt-3.2.1}/flixopt/elements.py +0 -0
  20. {flixopt-3.2.0 → flixopt-3.2.1}/flixopt/features.py +0 -0
  21. {flixopt-3.2.0 → flixopt-3.2.1}/flixopt/interface.py +0 -0
  22. {flixopt-3.2.0 → flixopt-3.2.1}/flixopt/io.py +0 -0
  23. {flixopt-3.2.0 → flixopt-3.2.1}/flixopt/linear_converters.py +0 -0
  24. {flixopt-3.2.0 → flixopt-3.2.1}/flixopt/modeling.py +0 -0
  25. {flixopt-3.2.0 → flixopt-3.2.1}/flixopt/network_app.py +0 -0
  26. {flixopt-3.2.0 → flixopt-3.2.1}/flixopt/plotting.py +0 -0
  27. {flixopt-3.2.0 → flixopt-3.2.1}/flixopt/results.py +0 -0
  28. {flixopt-3.2.0 → flixopt-3.2.1}/flixopt/solvers.py +0 -0
  29. {flixopt-3.2.0 → flixopt-3.2.1}/flixopt/structure.py +0 -0
  30. {flixopt-3.2.0 → flixopt-3.2.1}/flixopt.egg-info/SOURCES.txt +0 -0
  31. {flixopt-3.2.0 → flixopt-3.2.1}/flixopt.egg-info/dependency_links.txt +0 -0
  32. {flixopt-3.2.0 → flixopt-3.2.1}/flixopt.egg-info/top_level.txt +0 -0
  33. {flixopt-3.2.0 → flixopt-3.2.1}/setup.cfg +0 -0
@@ -81,6 +81,20 @@ If upgrading from v2.x, see the [v3.0.0 release notes](https://github.com/flixOp
81
81
 
82
82
  Until here -->
83
83
 
84
+ ## [3.2.1] - 2025-10-29
85
+
86
+ **Summary**:
87
+
88
+ If upgrading from v2.x, see the [v3.0.0 release notes](https://github.com/flixOpt/flixOpt/releases/tag/v3.0.0) and [Migration Guide](https://flixopt.github.io/flixopt/latest/user-guide/migration-guide-v3/).
89
+
90
+ ### 🐛 Fixed
91
+ - Fixed resampling of FlowSystem to reset `hours_of_last_timestep` and `hours_of_previous_timesteps` properly
92
+
93
+ ### 👷 Development
94
+ - Improved issue templates
95
+
96
+ ---
97
+
84
98
  ## [3.2.0] - 2025-10-26
85
99
 
86
100
  **Summary**: Enhanced plotting capabilities with consistent color management, custom plotting kwargs support, and centralized I/O handling.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: flixopt
3
- Version: 3.2.0
3
+ Version: 3.2.1
4
4
  Summary: Vector based energy and material flow optimization framework in Python.
5
5
  Author-email: "Chair of Building Energy Systems and Heat Supply, TU Dresden" <peter.stange@tu-dresden.de>, Felix Bumann <felixbumann387@gmail.com>, Felix Panitz <baumbude@googlemail.com>, Peter Stange <peter.stange@tu-dresden.de>
6
6
  Maintainer-email: Felix Bumann <felixbumann387@gmail.com>, Peter Stange <peter.stange@tu-dresden.de>
@@ -67,7 +67,7 @@ Requires-Dist: networkx==3.0.0; extra == "dev"
67
67
  Requires-Dist: werkzeug==3.0.0; extra == "dev"
68
68
  Provides-Extra: docs
69
69
  Requires-Dist: mkdocs==1.6.1; extra == "docs"
70
- Requires-Dist: mkdocs-material==9.6.21; extra == "docs"
70
+ Requires-Dist: mkdocs-material==9.6.22; extra == "docs"
71
71
  Requires-Dist: mkdocstrings-python==1.18.2; extra == "docs"
72
72
  Requires-Dist: mkdocs-table-reader-plugin==3.1.0; extra == "docs"
73
73
  Requires-Dist: mkdocs-gen-files==0.5.0; extra == "docs"
@@ -80,7 +80,7 @@ class FlowSystem(Interface):
80
80
  timesteps: pd.DatetimeIndex,
81
81
  periods: pd.Index | None = None,
82
82
  scenarios: pd.Index | None = None,
83
- hours_of_last_timestep: float | None = None,
83
+ hours_of_last_timestep: int | float | None = None,
84
84
  hours_of_previous_timesteps: int | float | np.ndarray | None = None,
85
85
  weights: PeriodicDataUser | None = None,
86
86
  scenario_independent_sizes: bool | list[str] = True,
@@ -929,6 +929,8 @@ class FlowSystem(Interface):
929
929
  self,
930
930
  time: str,
931
931
  method: Literal['mean', 'sum', 'max', 'min', 'first', 'last', 'std', 'var', 'median', 'count'] = 'mean',
932
+ hours_of_last_timestep: int | float | None = None,
933
+ hours_of_previous_timesteps: int | float | np.ndarray | None = None,
932
934
  **kwargs: Any,
933
935
  ) -> FlowSystem:
934
936
  """
@@ -938,10 +940,12 @@ class FlowSystem(Interface):
938
940
  Args:
939
941
  time: Resampling frequency (e.g., '3h', '2D', '1M')
940
942
  method: Resampling method. Recommended: 'mean', 'first', 'last', 'max', 'min'
943
+ hours_of_last_timestep: New duration of the last time step. Defaults to the last time interval of the new timesteps
944
+ hours_of_previous_timesteps: New duration of the previous timestep. Defaults to the first time increment of the new timesteps
941
945
  **kwargs: Additional arguments passed to xarray.resample()
942
946
 
943
947
  Returns:
944
- FlowSystem: New FlowSystem with resampled data
948
+ FlowSystem: New resampled FlowSystem
945
949
  """
946
950
  if not self.connected_and_transformed:
947
951
  self.connect_and_transform()
@@ -975,6 +979,10 @@ class FlowSystem(Interface):
975
979
  else:
976
980
  resampled_dataset = resampled_time_data
977
981
 
982
+ # Let FlowSystem recalculate or use explicitly set value
983
+ resampled_dataset.attrs['hours_of_last_timestep'] = hours_of_last_timestep
984
+ resampled_dataset.attrs['hours_of_previous_timesteps'] = hours_of_previous_timesteps
985
+
978
986
  return self.__class__.from_dataset(resampled_dataset)
979
987
 
980
988
  @property
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: flixopt
3
- Version: 3.2.0
3
+ Version: 3.2.1
4
4
  Summary: Vector based energy and material flow optimization framework in Python.
5
5
  Author-email: "Chair of Building Energy Systems and Heat Supply, TU Dresden" <peter.stange@tu-dresden.de>, Felix Bumann <felixbumann387@gmail.com>, Felix Panitz <baumbude@googlemail.com>, Peter Stange <peter.stange@tu-dresden.de>
6
6
  Maintainer-email: Felix Bumann <felixbumann387@gmail.com>, Peter Stange <peter.stange@tu-dresden.de>
@@ -67,7 +67,7 @@ Requires-Dist: networkx==3.0.0; extra == "dev"
67
67
  Requires-Dist: werkzeug==3.0.0; extra == "dev"
68
68
  Provides-Extra: docs
69
69
  Requires-Dist: mkdocs==1.6.1; extra == "docs"
70
- Requires-Dist: mkdocs-material==9.6.21; extra == "docs"
70
+ Requires-Dist: mkdocs-material==9.6.22; extra == "docs"
71
71
  Requires-Dist: mkdocstrings-python==1.18.2; extra == "docs"
72
72
  Requires-Dist: mkdocs-table-reader-plugin==3.1.0; extra == "docs"
73
73
  Requires-Dist: mkdocs-gen-files==0.5.0; extra == "docs"
@@ -31,7 +31,7 @@ werkzeug==3.0.0
31
31
 
32
32
  [docs]
33
33
  mkdocs==1.6.1
34
- mkdocs-material==9.6.21
34
+ mkdocs-material==9.6.22
35
35
  mkdocstrings-python==1.18.2
36
36
  mkdocs-table-reader-plugin==3.1.0
37
37
  mkdocs-gen-files==0.5.0
@@ -97,7 +97,7 @@ dev = [
97
97
  # Documentation building
98
98
  docs = [
99
99
  "mkdocs==1.6.1",
100
- "mkdocs-material==9.6.21",
100
+ "mkdocs-material==9.6.22",
101
101
  "mkdocstrings-python==1.18.2",
102
102
  "mkdocs-table-reader-plugin==3.1.0",
103
103
  "mkdocs-gen-files==0.5.0",
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes