Skip to content

Commit aa6562a

Browse files
committed
Add no-op implementation for AllowForms and ShowPanel. They emit a warning to remind the users that they don't do anything.
1 parent 4972810 commit aa6562a

File tree

2 files changed

+26
-0
lines changed

2 files changed

+26
-0
lines changed

dss/dss_capi.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
from ._dss_capi import ffi, lib
88
from ._cffi_api_util import *
99
import numpy as np
10+
import warnings
1011

1112
# Bind to the FFI module instance for OpenDSS-Classic
1213
api_util = CffiApiUtil(ffi, lib)
@@ -4989,6 +4990,18 @@ def Version(self):
49894990
'''Get version string for the DSS.'''
49904991
return get_string(lib.DSS_Get_Version())
49914992

4993+
@property
4994+
def AllowForms(self):
4995+
warnings.warn('AllowForms is not implemented.')
4996+
4997+
@AllowForms.setter
4998+
def AllowForms(self, value):
4999+
warnings.warn('AllowForms is not implemented.')
5000+
5001+
def ShowPanel(self):
5002+
warnings.warn('ShowPanel is not implemented.')
5003+
5004+
49925005

49935006

49945007

dss/pm/dsspm_capi.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
from .._dsspm_capi import ffi, lib
88
from .._cffi_api_util import *
99
import numpy as np
10+
import warnings
1011

1112
# Bind to the FFI module instance for OpenDSS-PM
1213
api_util = CffiApiUtil(ffi, lib)
@@ -5071,6 +5072,18 @@ def Version(self):
50715072
'''Get version string for the DSS.'''
50725073
return get_string(lib.DSS_Get_Version())
50735074

5075+
@property
5076+
def AllowForms(self):
5077+
warnings.warn('AllowForms is not implemented.')
5078+
5079+
@AllowForms.setter
5080+
def AllowForms(self, value):
5081+
warnings.warn('AllowForms is not implemented.')
5082+
5083+
def ShowPanel(self):
5084+
warnings.warn('ShowPanel is not implemented.')
5085+
5086+
50745087

50755088

50765089

0 commit comments

Comments
 (0)