File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 5151import time
5252from typing import Any , Optional , Tuple
5353import uuid
54- import warnings
5554import zmq
5655
5756import psutil
@@ -702,12 +701,6 @@ def run_model_executable(cmd_run_data: OMCSessionRunData) -> int:
702701
703702 return returncode
704703
705- def execute (self , command : str ):
706- warnings .warn ("This function is depreciated and will be removed in future versions; "
707- "please use sendExpression() instead" , DeprecationWarning , stacklevel = 2 )
708-
709- return self .sendExpression (command , parsed = False )
710-
711704 def sendExpression (self , command : str , parsed : bool = True ) -> Any :
712705 """
713706 Send an expression to the OMC server and return the result.
Original file line number Diff line number Diff line change @@ -37,9 +37,7 @@ def test_Simulate(om, model_time_str):
3737 assert om .sendExpression ('res.resultFile' )
3838
3939
40- def test_execute (om ):
41- with pytest .deprecated_call ():
42- assert om .execute ('"HelloWorld!"' ) == '"HelloWorld!"\n '
40+ def test_sendExpression (om ):
4341 assert om .sendExpression ('"HelloWorld!"' , parsed = False ) == '"HelloWorld!"\n '
4442 assert om .sendExpression ('"HelloWorld!"' , parsed = True ) == 'HelloWorld!'
4543
You can’t perform that action at this time.
0 commit comments