Commit 1d48545
committed
Refactor set_bounds() in EVChargerPool
This commit refactors the set_bounds() method in EVChargerPool
to use the Current type instead of a float for the max current,
and the parameter name was renamed to max_current to reflect
the change in type.
The Current type provides semantic clarity, unit consistency,
and better arithmetic operations when dealing with current
units compared to raw and built-in floats.
Signed-off-by: Daniel Zullo <[email protected]>1 parent 44576d5 commit 1d48545
File tree
1 file changed
+3
-3
lines changed- src/frequenz/sdk/timeseries/ev_charger_pool
1 file changed
+3
-3
lines changedLines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
240 | 240 | | |
241 | 241 | | |
242 | 242 | | |
243 | | - | |
| 243 | + | |
244 | 244 | | |
245 | 245 | | |
246 | 246 | | |
247 | 247 | | |
248 | 248 | | |
249 | 249 | | |
250 | 250 | | |
251 | | - | |
| 251 | + | |
252 | 252 | | |
253 | 253 | | |
254 | 254 | | |
255 | | - | |
| 255 | + | |
256 | 256 | | |
257 | 257 | | |
258 | 258 | | |
| |||
0 commit comments