你已经派生过 gprMax
镜像自地址
https://gitee.com/sunhf/gprMax.git
已同步 2025-08-08 07:24:19 +08:00
make parameters available as object properties
这个提交包含在:
@@ -38,6 +38,11 @@ init()
|
|||||||
|
|
||||||
floattype = dtypes['float_or_double']
|
floattype = dtypes['float_or_double']
|
||||||
|
|
||||||
|
|
||||||
|
class Properties:
|
||||||
|
pass
|
||||||
|
|
||||||
|
|
||||||
class UserObjectSingle:
|
class UserObjectSingle:
|
||||||
|
|
||||||
def __init__(self, **kwargs):
|
def __init__(self, **kwargs):
|
||||||
@@ -46,6 +51,10 @@ class UserObjectSingle:
|
|||||||
# created before the domain
|
# created before the domain
|
||||||
self.order = None
|
self.order = None
|
||||||
self.kwargs = kwargs
|
self.kwargs = kwargs
|
||||||
|
self.props = Properties()
|
||||||
|
|
||||||
|
for k, v in kwargs.items():
|
||||||
|
setattr(self.props, k, v)
|
||||||
|
|
||||||
def __str__(self):
|
def __str__(self):
|
||||||
pass
|
pass
|
||||||
|
在新工单中引用
屏蔽一个用户