trnsystor.statement.Version

class trnsystor.statement.Version(v=(18, 0))[source]

VERSION Statement.

Added with TRNSYS version 15. The idea of the command is that by labeling decks with the TRNSYS version number that they were created under, it is easy to keep TRNSYS backwards compatible. The version number is saved by the TRNSYS kernel and can be acted upon.

Initialize the Version Statement.

Parameters

v (tuple) – A tuple of (major, minor) eg. 18.0 :> (18, 0)

classmethod from_string(string)[source]

Create Version statement from str version number. eg. 18.0.