Added a pre-commit config file and reformatted all the files accordingly by using it.

这个提交包含在:
Sai-Suraj-27
2023-06-26 16:09:39 +05:30
父节点 c71e87e34f
当前提交 f9dd7f2420
共有 155 个文件被更改,包括 11383 次插入8802 次删除

查看文件

@@ -1,5 +1,5 @@
"""A series of models with different domain sizes used for benchmarking.
The domain is free space with a simple source (Hertzian Dipole) and
The domain is free space with a simple source (Hertzian Dipole) and
receiver at the centre.
"""
@@ -19,7 +19,6 @@ scenes = []
for d in domains:
for threads in ompthreads:
# Discretisation
dl = 0.001
@@ -30,14 +29,12 @@ for d in domains:
scene = gprMax.Scene()
title = gprMax.Title(name=fn.with_suffix('').name)
title = gprMax.Title(name=fn.with_suffix("").name)
domain = gprMax.Domain(p1=(x, y, z))
dxdydz = gprMax.Discretisation(p1=(dl, dl, dl))
time_window = gprMax.TimeWindow(time=3e-9)
wv = gprMax.Waveform(wave_type='gaussiandotnorm', amp=1, freq=900e6,
id='MySource')
src = gprMax.HertzianDipole(p1=(x/2, y/2, z/2), polarisation='x',
waveform_id='MySource')
wv = gprMax.Waveform(wave_type="gaussiandotnorm", amp=1, freq=900e6, id="MySource")
src = gprMax.HertzianDipole(p1=(x / 2, y / 2, z / 2), polarisation="x", waveform_id="MySource")
omp = gprMax.OMPThreads(n=threads)
@@ -51,4 +48,4 @@ for d in domains:
scenes.append(scene)
# Run model
gprMax.run(scenes=scenes, n=len(scenes), geometry_only=False, outputfile=fn, gpu=None)
gprMax.run(scenes=scenes, n=len(scenes), geometry_only=False, outputfile=fn, gpu=None)