MCPcopy Create free account
hub / github.com/ahalev/python-microgrid / current_load

Method current_load

src/pymgrid/modules/load_module.py:107–117  ·  view source on GitHub ↗

Current load. Returns ------- load : float Current load demand.

(self)

Source from the content-addressed store, hash-verified

105
106 @property
107 def current_load(self):
108 """
109 Current load.
110
111 Returns
112 -------
113 load : float
114 Current load demand.
115
116 """
117 return -1 * self._time_series[self._current_step].item()
118
119 @property
120 def is_sink(self):

Callers

nothing calls this directly

Calls 1

itemMethod · 0.80

Tested by

no test coverage detected