modelGitShaLogger

Model that stores the git sha of library dependencies

Extends from Modelica.Blocks.Icons.Block.

Information

This model collects the git sha's of the libraries in libraryNames and stores these sha's in the path shaResultPath. The library paths are automatically fetch from libraryNames through the definition of parameter libraryPaths. Note that libraryNames is a constant and hence does not show up in the parameter window. Its values can be defined using the Modelica text view.

Parameters

TypeNameDefaultDescription
StringlibraryNames{"IDEAS"}Library names, printed in result file
StringlibraryPaths{Modelica.Utilities.Files.loadResource("modelica://" + libraryName + "/") for libraryName in libraryNames}Library paths, used to fetch sha's
StringshaResultPathModelica.Utilities.Files.loadResource("modelica://IDEAS/") + getInstanceName() + "_dependencies.txt"Path where the sha's will be stored
Booleanverbosetrue=true, to print sha's to simulation output

Contents

NameDescription
tagCommitprotected

Revisions

  • October 23, 2018, by Filip Jorissen:
    First implementation.