(self, **kwargs)
| 6 | class PythonSlaveWithDep(Fmi2Slave): |
| 7 | |
| 8 | def __init__(self, **kwargs): |
| 9 | super().__init__(**kwargs) |
| 10 | |
| 11 | self.realIn = 22.0 |
| 12 | self.realOut = 0.0 |
| 13 | self.register_variable(Real("realIn", causality=Fmi2Causality.input)) |
| 14 | self.register_variable(Real("realOut", causality=Fmi2Causality.output)) |
| 15 | |
| 16 | def do_step(self, current_time, step_size): |
| 17 | self.realOut = self.realIn * get_amplitude() * math.exp((current_time + step_size) / get_time_constant()) |
nothing calls this directly
no test coverage detected