你已经派生过 gprMax
镜像自地址
https://gitee.com/sunhf/gprMax.git
已同步 2025-08-08 07:24:19 +08:00
Remove generic typing from numpy arrays
Need to use NDArray from numpy.typing in order to use generics
这个提交包含在:
@@ -125,11 +125,11 @@ class Model:
|
|||||||
self.G.dl[2] = value
|
self.G.dl[2] = value
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def dl(self) -> np.ndarray[Any, np.dtype[np.single]]:
|
def dl(self) -> np.ndarray:
|
||||||
return self.G.dl
|
return self.G.dl
|
||||||
|
|
||||||
@dl.setter
|
@dl.setter
|
||||||
def dl(self, value: np.ndarray[Any, np.dtype[np.single]]):
|
def dl(self, value: np.ndarray):
|
||||||
self.G.dl = value
|
self.G.dl = value
|
||||||
|
|
||||||
@property
|
@property
|
||||||
|
在新工单中引用
屏蔽一个用户