Mon 15 Sep 09:44:42 CEST 2025
This commit is contained in:
parent
a2c33de2ac
commit
7e23de5a42
|
|
@ -416,9 +416,14 @@ def read_simulation(sim_params):
|
||||||
|
|
||||||
SimNDT_Simulation.preferredDeviceType = sim_device
|
SimNDT_Simulation.preferredDeviceType = sim_device
|
||||||
|
|
||||||
|
if "dx" in sim_params["Simulation"]:
|
||||||
|
SimNDT_Simulation.preferredDX=sim_params["Simulation"]["dx"]
|
||||||
|
if "dt" in sim_params["Simulation"]:
|
||||||
|
SimNDT_Simulation.preferredDT=sim_params["Simulation"]["dt"]
|
||||||
|
|
||||||
print("Finished reading Simulation section.")
|
print("Finished reading Simulation section.")
|
||||||
print(repr(SimNDT_Simulation))
|
print(repr(SimNDT_Simulation))
|
||||||
# print("\n")
|
#print("\n")
|
||||||
return SimNDT_Simulation
|
return SimNDT_Simulation
|
||||||
|
|
||||||
def read_receivers(sim_params):
|
def read_receivers(sim_params):
|
||||||
|
|
@ -661,8 +666,15 @@ def read_export(sim_params):
|
||||||
if "enableNumPy" in sim_params["Export"].keys():
|
if "enableNumPy" in sim_params["Export"].keys():
|
||||||
enableNumPy = sim_params["Export"]["enableNumPy"]
|
enableNumPy = sim_params["Export"]["enableNumPy"]
|
||||||
else:
|
else:
|
||||||
enableNumPy = True
|
enableNumPy = False
|
||||||
extension = sim_params["Export"]["Extension"]
|
if "enableCsv" in sim_params["Export"].keys():
|
||||||
|
enableCsv = sim_params["Export"]["enableCsv"]
|
||||||
|
else:
|
||||||
|
enableCsv = False
|
||||||
|
if "Extension" in sim_params["Export"].keys():
|
||||||
|
extension = sim_params["Export"]["Extension"]
|
||||||
|
else:
|
||||||
|
extension = ".png"
|
||||||
if "dB" in sim_params["Export"].keys():
|
if "dB" in sim_params["Export"].keys():
|
||||||
db = sim_params["Export"]["dB"]
|
db = sim_params["Export"]["dB"]
|
||||||
else:
|
else:
|
||||||
|
|
@ -671,7 +683,11 @@ def read_export(sim_params):
|
||||||
color = sim_params["Export"]["Color"]
|
color = sim_params["Export"]["Color"]
|
||||||
else:
|
else:
|
||||||
color = 0
|
color = 0
|
||||||
field = sim_params["Export"]["Field"]
|
if "Field" in sim_params["Export"].keys():
|
||||||
|
field = sim_params["Export"]["Field"]
|
||||||
|
else:
|
||||||
|
field = 3
|
||||||
|
|
||||||
if "Material" in sim_params["Export"].keys():
|
if "Material" in sim_params["Export"].keys():
|
||||||
material = sim_params["Export"]["Material"]
|
material = sim_params["Export"]["Material"]
|
||||||
else:
|
else:
|
||||||
|
|
@ -717,6 +733,7 @@ def read_export(sim_params):
|
||||||
File_path=save_filepath,
|
File_path=save_filepath,
|
||||||
enableFields=enableFields,
|
enableFields=enableFields,
|
||||||
enableNumPy=enableNumPy,
|
enableNumPy=enableNumPy,
|
||||||
|
enableCsv=enableCsv,
|
||||||
Extension=extension,
|
Extension=extension,
|
||||||
dB=db,
|
dB=db,
|
||||||
Color=color,
|
Color=color,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user