你已经派生过 gprMax
镜像自地址
https://gitee.com/sunhf/gprMax.git
已同步 2025-08-06 20:46:52 +08:00
Corrected method of naming output file from input file for the case where the pathname contains dots.
这个提交包含在:
@@ -72,7 +72,7 @@ author = 'Craig Warren and Antonis Giannopoulos'
|
||||
# The short X.Y version.
|
||||
# Read version number from gprMax/gprMax.py
|
||||
#version = re.search('^__version__\s*=\s*\'(.*)\'', open('../../gprMax/gprMax.py').read(), re.M).group(1)
|
||||
version = '3.0.0b6'
|
||||
version = '3.0.0b7'
|
||||
# The full version, including alpha/beta/rc tags.
|
||||
release = version + '(Bowmore)'
|
||||
|
||||
|
@@ -19,7 +19,7 @@
|
||||
"""gprMax.gprMax: provides entry point main()."""
|
||||
|
||||
# Set the version number here
|
||||
__version__ = '3.0.0b6'
|
||||
__version__ = '3.0.0b7'
|
||||
versionname = ' (Bowmore)'
|
||||
|
||||
import sys, os, datetime, itertools, argparse
|
||||
@@ -277,7 +277,7 @@ def run_model(args, modelrun, numbermodelruns, inputfile, inputdirectory):
|
||||
snapshot.prepare_file(modelrun, numbermodelruns, G)
|
||||
|
||||
# Prepare output file
|
||||
inputfileparts = inputfile.split('.')
|
||||
inputfileparts = os.path.splitext(inputfile)
|
||||
if numbermodelruns == 1:
|
||||
outputfile = inputfileparts[0] + '.out'
|
||||
else:
|
||||
|
在新工单中引用
屏蔽一个用户