File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1919,20 +1919,18 @@ def __init__(
19191919 ModelicaSystem.simulate(). Additionally, the path to store the result files is needed (= resultpath) as well as
19201920 a list of parameters to vary for the Doe (= parameters). All possible combinations are considered.
19211921 """
1922+ if modelName is None :
1923+ raise ModelicaSystemError ("No model name provided!" )
19221924
19231925 self ._mod = ModelicaSystem (
19241926 commandLineOptions = commandLineOptions ,
19251927 customBuildDirectory = customBuildDirectory ,
19261928 omhome = omhome ,
19271929 omc_process = omc_process ,
19281930 )
1929-
1930- if modelName is None :
1931- raise ModelicaSystemError ("No model name provided!" )
1932-
19331931 self ._mod .model (
1934- name = modelName ,
19351932 file = fileName ,
1933+ name = modelName ,
19361934 libraries = lmodel ,
19371935 variable_filter = variableFilter ,
19381936 )
You can’t perform that action at this time.
0 commit comments