File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 55
66import logging
77from typing import Any , Optional
8+ import warnings
89
910import pyparsing
1011
@@ -23,6 +24,13 @@ class OMCSessionCmd:
2324 """
2425
2526 def __init__ (self , session : OMSessionABC , readonly : bool = False ):
27+ warnings .warn (
28+ message = "The class OMCSessionCMD is depreciated and will be removed in future versions; "
29+ "please use OMCSession*.sendExpression(...) instead!" ,
30+ category = DeprecationWarning ,
31+ stacklevel = 2 ,
32+ )
33+
2634 if not isinstance (session , OMSessionABC ):
2735 raise OMSessionException ("Invalid OMC process definition!" )
2836 self ._session = session
Original file line number Diff line number Diff line change @@ -34,10 +34,12 @@ def __init__(
3434 """
3535 Initialisation for OMCSessionZMQ
3636 """
37- warnings .warn (message = "The class OMCSessionZMQ is depreciated and will be removed in future versions; "
38- "please use OMCProcess* classes instead!" ,
39- category = DeprecationWarning ,
40- stacklevel = 2 )
37+ warnings .warn (
38+ message = "The class OMCSessionZMQ is depreciated and will be removed in future versions; "
39+ "please use OMCProcess* classes instead!" ,
40+ category = DeprecationWarning ,
41+ stacklevel = 2 ,
42+ )
4143
4244 if omc_process is None :
4345 omc_process = OMCSessionLocal (omhome = omhome , timeout = timeout )
You can’t perform that action at this time.
0 commit comments