MCPcopy Create free account
hub / github.com/NTNU-IHB/PythonFMU / __init__

Method __init__

pythonfmu/tests/test_variables.py:51–54  ·  view source on GitHub ↗
(self, **kwargs)

Source from the content-addressed store, hash-verified

49 class Slave(Fmi2Slave):
50
51 def __init__(self, **kwargs):
52 super().__init__(**kwargs)
53 self.var = [value]
54 self.register_variable(PY2FMI[type(value)]("var", getter=lambda: self.var[0]))
55
56 def do_step(self, t, dt):
57 return True

Callers 1

__init__Method · 0.45

Calls 1

register_variableMethod · 0.80

Tested by

no test coverage detected