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

Method _get_num_iter

src/pymgrid/algos/rbc/rbc.py:94–97  ·  view source on GitHub ↗
(self, max_steps)

Source from the content-addressed store, hash-verified

92 return self.microgrid.get_log(as_frame=True)
93
94 def _get_num_iter(self, max_steps):
95 if max_steps is not None:
96 return max_steps
97 return self.microgrid.final_step - self.microgrid.initial_step
98
99 def get_action(self):
100 """

Callers 1

runMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected