你已经派生过 gprMax
镜像自地址
https://gitee.com/sunhf/gprMax.git
已同步 2025-08-07 04:56:51 +08:00
Allow user to specify output data file
这个提交包含在:
@@ -182,17 +182,13 @@ class ModelConfig:
|
||||
outputdir: string of output file directory given by input file command.
|
||||
"""
|
||||
|
||||
if not outputdir:
|
||||
try:
|
||||
self.output_file_path = Path(self.args.outputfile)
|
||||
except AttributeError:
|
||||
self.output_file_path = sim_config.input_file_path.with_suffix("")
|
||||
if outputdir is not None:
|
||||
Path(outputdir).mkdir(exist_ok=True)
|
||||
self.output_file_path = Path(outputdir, sim_config.input_file_path.stem)
|
||||
elif sim_config.args.outputfile is not None:
|
||||
self.output_file_path = Path(sim_config.args.outputfile).with_suffix("")
|
||||
else:
|
||||
try:
|
||||
Path(outputdir).mkdir(exist_ok=True)
|
||||
self.output_file_path = Path(outputdir, sim_config.input_file_path.stem)
|
||||
except AttributeError:
|
||||
self.output_file_path = sim_config.input_file_path.with_suffix("")
|
||||
self.output_file_path = sim_config.input_file_path.with_suffix("")
|
||||
|
||||
parts = self.output_file_path.parts
|
||||
self.output_file_path = Path(*parts[:-1], parts[-1] + self.appendmodelnumber)
|
||||
|
@@ -172,6 +172,7 @@ def cli():
|
||||
prog="gprMax", formatter_class=argparse.ArgumentDefaultsHelpFormatter
|
||||
)
|
||||
parser.add_argument("inputfile", help=help_msg["inputfile"])
|
||||
parser.add_argument("-outputfile", "-o", help=help_msg["outputfile"])
|
||||
parser.add_argument("-n", default=args_defaults["n"], type=int, help=help_msg["n"])
|
||||
parser.add_argument("-i", type=int, help=help_msg["i"])
|
||||
parser.add_argument(
|
||||
|
在新工单中引用
屏蔽一个用户