你已经派生过 gprMax
镜像自地址
https://gitee.com/sunhf/gprMax.git
已同步 2025-08-07 23:14:03 +08:00
Fix default scene arg being overwritten
- Repeat calls of gprMax.run() would reuse scene data from the last call
这个提交包含在:
@@ -279,7 +279,7 @@ class SimulationConfig:
|
||||
|
||||
# Scenes parameter may not exist if user enters via CLI
|
||||
try:
|
||||
self.scenes = args.scenes
|
||||
self.scenes = args.scenes if args.scenes is not None else []
|
||||
except AttributeError:
|
||||
self.scenes = []
|
||||
|
||||
|
@@ -25,7 +25,7 @@ from .utilities.logging import logging_config
|
||||
|
||||
# Arguments (used for API) and their default values (used for API and CLI)
|
||||
args_defaults = {
|
||||
"scenes": [],
|
||||
"scenes": None,
|
||||
"inputfile": None,
|
||||
"outputfile": None,
|
||||
"n": 1,
|
||||
|
在新工单中引用
屏蔽一个用户