You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Feature/rename parameters linear converters (#468)
* New lower case parameter names for flows in linear_converters.py
* Improve setting of conversion factors
* Add deprectaed parameter access
* Add deprectaed parameter access
* Update CHANGELOG.md
* Add setters
* Merge from main
* Ensure flows are present
* Improve logging
* Remove special handling for TimeSeriesData
* Backward Compatibility for HeatPump and HeatPumpWithSource
Robust Type Handling in check_bounds
* Renamed eta → thermal_efficiency
Renamed eta_th → thermal_efficiency
Renamed eta_el → electrical_efficiency
- Fixed to use value_arr for comparisons instead of value
* Rename power_flow to electrical_flow
* Update CHANGELOG.md
* Update all tests and examples
* Update remaining tests
* use the explicit thermal_efficiency keyword argument
* Update test to new porperty
* Rename lastValueOfSim to equals_last
* Remove white space
* Fix CHANGELOG.md
* Typo
* Typo
* Improve CHANGELOG.md
* Update Changelog
Copy file name to clipboardExpand all lines: CHANGELOG.md
+25-1Lines changed: 25 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -51,7 +51,7 @@ If upgrading from v2.x, see the [v3.0.0 release notes](https://github.com/flixOp
51
51
52
52
## [Unreleased] - ????-??-??
53
53
54
-
**Summary**: Internal architecture improvements to simplify FlowSystem-Element coupling and eliminate circular dependencies.
54
+
**Summary**: Renaming parameters in Linear Transformers for readability & Internal architecture improvements to simplify FlowSystem-Element coupling and eliminate circular dependencies. Old parameters till work but emmit warnings.
55
55
56
56
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/).
57
57
@@ -71,9 +71,33 @@ If upgrading from v2.x, see the [v3.0.0 release notes](https://github.com/flixOp
71
71
- **Two-phase modeling pattern within _do_modeling()**: Clarified the pattern where `_do_modeling()` creates nested submodels first (so their variables exist), then creates constraints that reference those variables - eliminates circular dependencies in Submodel architecture
72
72
- **Improved cache invalidation**: Cache invalidation in `add_elements()` now happens once after all additions rather than per element
73
73
- **Better logging**: Centralized element registration logging to show element type and full label
74
+
- **Parameter renaming in `linear_converters.py`**: Renamed parameters to use lowercase, descriptive names for better consistency and clarity:
- **Old parameter names in `linear_converters.py`**: The following parameter names are now deprecated and accessible as properties/kwargs that emit `DeprecationWarning`. They will be removed in v4.0.0:
- Fixed inconsistent argument passing in `_fit_effect_coords()` - standardized all calls to use named arguments (`prefix=`, `effect_values=`, `suffix=`) instead of mix of positional and named arguments
100
+
- Fixed `check_bounds` function in `linear_converters.py` to normalize array inputs before comparisons, ensuring correct boundary checks with DataFrames, Series, and other array-like types
77
101
78
102
### 👷 Development
79
103
- **Eliminated circular dependencies**: Implemented two-phase modeling pattern within `_do_modeling()` where nested submodels are created first (creating their variables), then constraints are created that can safely reference those submodel variables
0 commit comments