你已经派生过 gprMax
镜像自地址
https://gitee.com/sunhf/gprMax.git
已同步 2025-08-08 07:24:19 +08:00
fix problem with casting None to int
这个提交包含在:
@@ -179,7 +179,10 @@ class AddSurfaceRoughness(UserObjectGeometry):
|
||||
surface.surfaceID = requestedsurface
|
||||
surface.fractalrange = fractalrange
|
||||
surface.operatingonID = volume.ID
|
||||
surface.seed = int(seed)
|
||||
if seed is not None:
|
||||
surface.seed = int(seed)
|
||||
else:
|
||||
surface.seed = seed
|
||||
surface.weighting = weighting
|
||||
|
||||
# List of existing surfaces IDs
|
||||
|
@@ -66,7 +66,7 @@ class FractalBox(UserObjectGeometry):
|
||||
rot_pts = rotate_2point_object(pts, self.axis, self.angle, self.origin)
|
||||
self.kwargs['p1'] = tuple(rot_pts[0, :])
|
||||
self.kwargs['p2'] = tuple(rot_pts[1, :])
|
||||
|
||||
|
||||
def create(self, grid, uip):
|
||||
try:
|
||||
p1 = self.kwargs['p1']
|
||||
@@ -140,7 +140,10 @@ class FractalBox(UserObjectGeometry):
|
||||
volume.ID = ID
|
||||
volume.operatingonID = mixing_model_id
|
||||
volume.nbins = nbins
|
||||
volume.seed = int(seed)
|
||||
if seed is not None:
|
||||
volume.seed = int(seed)
|
||||
else:
|
||||
volume.seed = seed
|
||||
volume.weighting = weighting
|
||||
volume.averaging = averagefractalbox
|
||||
volume.mixingmodel = mixingmodel
|
||||
|
在新工单中引用
屏蔽一个用户