你已经派生过 gprMax
镜像自地址
https://gitee.com/sunhf/gprMax.git
已同步 2025-08-07 23:14:03 +08:00
Whitespace (W292,W293,W391) tidy.
这个提交包含在:
@@ -1,4 +1,3 @@
|
|||||||
# This is where the version number is set and read by setup.py and conf.py (for the docs)
|
# This is where the version number is set and read by setup.py and conf.py (for the docs)
|
||||||
|
|
||||||
__version__ = '3.0.5'
|
__version__ = '3.0.5'
|
||||||
|
|
||||||
|
@@ -252,15 +252,3 @@ class Grass(object):
|
|||||||
y = round(self.geometryparams[root, 5])
|
y = round(self.geometryparams[root, 5])
|
||||||
|
|
||||||
return x, y
|
return x, y
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@@ -272,6 +272,3 @@ def Iz(x, y, z, Hx, Hy, G):
|
|||||||
else:
|
else:
|
||||||
Iz = G.dx * (Hx[x, y - 1, z] - Hx[x, y, z]) + G.dy * (Hy[x, y, z] - Hy[x - 1, y, z])
|
Iz = G.dx * (Hx[x, y - 1, z] - Hx[x, y, z]) + G.dy * (Hy[x, y, z] - Hy[x - 1, y, z])
|
||||||
return Iz
|
return Iz
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@@ -394,5 +394,3 @@ def rx_steps(dx=0, dy=0, dz=0):
|
|||||||
c = Coordinate(dx, dy, dz)
|
c = Coordinate(dx, dy, dz)
|
||||||
command('rx_steps', str(c))
|
command('rx_steps', str(c))
|
||||||
return c
|
return c
|
||||||
|
|
||||||
|
|
||||||
|
@@ -201,4 +201,3 @@ def check_cmd_names(processedlines, checkessential=True):
|
|||||||
raise CmdInputError('Your input file is missing essential gprMax commands required to run a model. Essential commands are: ' + ', '.join(essentialcmds))
|
raise CmdInputError('Your input file is missing essential gprMax commands required to run a model. Essential commands are: ' + ', '.join(essentialcmds))
|
||||||
|
|
||||||
return singlecmds, multiplecmds, geometry
|
return singlecmds, multiplecmds, geometry
|
||||||
|
|
||||||
|
@@ -1456,4 +1456,3 @@ def process_geometrycmds(geometry, G):
|
|||||||
|
|
||||||
data = volume.fractalvolume.astype('int16', order='C')
|
data = volume.fractalvolume.astype('int16', order='C')
|
||||||
build_voxels_from_array(volume.xs, volume.ys, volume.zs, 0, data, G.solid, G.rigidE, G.rigidH, G.ID)
|
build_voxels_from_array(volume.xs, volume.ys, volume.zs, 0, data, G.solid, G.rigidE, G.rigidH, G.ID)
|
||||||
|
|
||||||
|
@@ -744,4 +744,3 @@ def process_multicmds(multicmds, G):
|
|||||||
print('PML CFS parameters: alpha (scaling: {}, scaling direction: {}, min: {:g}, max: {:g}), kappa (scaling: {}, scaling direction: {}, min: {:g}, max: {:g}), sigma (scaling: {}, scaling direction: {}, min: {:g}, max: {:g}) created.'.format(cfsalpha.scalingprofile, cfsalpha.scalingdirection, cfsalpha.min, cfsalpha.max, cfskappa.scalingprofile, cfskappa.scalingdirection, cfskappa.min, cfskappa.max, cfssigma.scalingprofile, cfssigma.scalingdirection, cfssigma.min, cfssigma.max))
|
print('PML CFS parameters: alpha (scaling: {}, scaling direction: {}, min: {:g}, max: {:g}), kappa (scaling: {}, scaling direction: {}, min: {:g}, max: {:g}), sigma (scaling: {}, scaling direction: {}, min: {:g}, max: {:g}) created.'.format(cfsalpha.scalingprofile, cfsalpha.scalingdirection, cfsalpha.min, cfsalpha.max, cfskappa.scalingprofile, cfskappa.scalingdirection, cfskappa.min, cfskappa.max, cfssigma.scalingprofile, cfssigma.scalingdirection, cfssigma.min, cfssigma.max))
|
||||||
|
|
||||||
G.cfs.append(cfs)
|
G.cfs.append(cfs)
|
||||||
|
|
||||||
|
@@ -257,4 +257,3 @@ def process_singlecmds(singlecmds, G):
|
|||||||
print('User waveform {} created.'.format(w.ID))
|
print('User waveform {} created.'.format(w.ID))
|
||||||
|
|
||||||
G.waveforms.append(w)
|
G.waveforms.append(w)
|
||||||
|
|
||||||
|
@@ -226,14 +226,3 @@ class PeplinskiSoil(object):
|
|||||||
G.materials.append(m)
|
G.materials.append(m)
|
||||||
|
|
||||||
muiter.iternext()
|
muiter.iternext()
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@@ -443,6 +443,3 @@ def plot_optimisation_history(fitnessvalueshist, optparamshist, optparamsinit):
|
|||||||
ax.grid()
|
ax.grid()
|
||||||
p += 1
|
p += 1
|
||||||
plt.show()
|
plt.show()
|
||||||
|
|
||||||
|
|
||||||
|
|
@@ -392,4 +392,3 @@ def update_magnetic_pml(G):
|
|||||||
elif pml.direction == 'zplus':
|
elif pml.direction == 'zplus':
|
||||||
update_pml_2order_hx_zplus(pml.xs, pml.xf, pml.ys, pml.yf, pml.zs, pml.zf, G.nthreads, G.updatecoeffsH, G.ID, G.Hx, G.Ey, pml.HPhixzy, pml.HRA, pml.HRB, pml.HRE, pml.HRF, G.dz)
|
update_pml_2order_hx_zplus(pml.xs, pml.xf, pml.ys, pml.yf, pml.zs, pml.zf, G.nthreads, G.updatecoeffsH, G.ID, G.Hx, G.Ey, pml.HPhixzy, pml.HRA, pml.HRB, pml.HRE, pml.HRF, G.dz)
|
||||||
update_pml_2order_hy_zplus(pml.xs, pml.xf, pml.ys, pml.yf, pml.zs, pml.zf, G.nthreads, G.updatecoeffsH, G.ID, G.Hy, G.Ex, pml.HPhiyzx, pml.HRA, pml.HRB, pml.HRE, pml.HRF, G.dz)
|
update_pml_2order_hy_zplus(pml.xs, pml.xf, pml.ys, pml.yf, pml.zs, pml.zf, G.nthreads, G.updatecoeffsH, G.ID, G.Hy, G.Ex, pml.HPhiyzx, pml.HRA, pml.HRB, pml.HRE, pml.HRF, G.dz)
|
||||||
|
|
||||||
|
@@ -148,4 +148,3 @@ class Snapshot(object):
|
|||||||
|
|
||||||
self.filehandle.write('\n</AppendedData>\n</VTKFile>'.encode('utf-8'))
|
self.filehandle.write('\n</AppendedData>\n</VTKFile>'.encode('utf-8'))
|
||||||
self.filehandle.close()
|
self.filehandle.close()
|
||||||
|
|
||||||
|
@@ -347,4 +347,3 @@ class TransmissionLine(Source):
|
|||||||
self.current[self.antpos] = Iz(i, j, k, G.Hx, G.Hy, G)
|
self.current[self.antpos] = Iz(i, j, k, G.Hx, G.Hy, G)
|
||||||
|
|
||||||
self.update_current(time, G)
|
self.update_current(time, G)
|
||||||
|
|
||||||
|
@@ -124,5 +124,3 @@ def human_size(size, a_kilobyte_is_1024_bytes=True):
|
|||||||
return '{0:.1f}{1}'.format(size, suffix)
|
return '{0:.1f}{1}'.format(size, suffix)
|
||||||
|
|
||||||
raise ValueError('Number is too large.')
|
raise ValueError('Number is too large.')
|
||||||
|
|
||||||
|
|
||||||
|
@@ -91,4 +91,3 @@ def write_hdf5(outputfile, Ex, Ey, Ez, Hx, Hy, Hz, G):
|
|||||||
f['/rxs/rx' + str(rxindex + 1) + '/Iy'] = rx.outputs['Iy']
|
f['/rxs/rx' + str(rxindex + 1) + '/Iy'] = rx.outputs['Iy']
|
||||||
if 'Iz' in rx.outputs:
|
if 'Iz' in rx.outputs:
|
||||||
f['/rxs/rx' + str(rxindex + 1) + '/Iz'] = rx.outputs['Iz']
|
f['/rxs/rx' + str(rxindex + 1) + '/Iz'] = rx.outputs['Iz']
|
||||||
|
|
||||||
|
在新工单中引用
屏蔽一个用户