trnsystor.studio.StudioHeader

class trnsystor.studio.StudioHeader(unit_name, model, position, layer=None)[source]

StudioHeader class.

Each TrnsysModel has a StudioHeader which handles the studio comments such as position, UNIT_NAME, model, POSITION, LAYER, LINK_STYLE

Initialize object.

Parameters
  • unit_name (str) – The unit_name, eg.: “Type104”.

  • model (Path) – The path of the tmf/xml file.

  • position (Point, optional) – The Point containing coordinates on the canvas.

  • layer (list, optional) – list of layer names on which the model is placed. Defaults to “Main”.

classmethod from_component(model)[source]

Create object from TrnsysModel.