File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -34,9 +34,9 @@ def test_setParameters():
3434 model_path = omc .sendExpression ("getInstallationDirectoryPath()" ) + "/share/doc/omc/testmodels/"
3535 mod = OMPython .ModelicaSystem (model_path + "BouncingBall.mo" , "BouncingBall" )
3636
37- # method 1 (test depreciated variants )
38- mod .setParameters (" e=1.234" )
39- mod .setParameters ([ " g=321.0" ] )
37+ # method 1 (as kwarg )
38+ mod .setParameters (e = 1.234 )
39+ mod .setParameters (g = 321.0 )
4040 assert mod .getParameters ("e" ) == ["1.234" ]
4141 assert mod .getParameters ("g" ) == ["321.0" ]
4242 assert mod .getParameters () == {
@@ -46,7 +46,7 @@ def test_setParameters():
4646 with pytest .raises (KeyError ):
4747 mod .getParameters ("thisParameterDoesNotExist" )
4848
49- # method 2 (new style )
49+ # method 2 (as **kwarg )
5050 pvals = {"e" : 21.3 , "g" : 0.12 }
5151 mod .setParameters (** pvals )
5252 assert mod .getParameters () == {
You can’t perform that action at this time.
0 commit comments