你已经派生过 gprMax
镜像自地址
https://gitee.com/sunhf/gprMax.git
已同步 2025-08-07 23:14:03 +08:00
Install and run pre-commit
这个提交包含在:
@@ -1,4 +1,5 @@
|
||||
# See https://pre-commit.com for more information
|
||||
exclude: '\S*.map'
|
||||
repos:
|
||||
- repo: https://github.com/pre-commit/pre-commit-hooks
|
||||
rev: v4.5.0
|
||||
|
@@ -24,5 +24,3 @@ python:
|
||||
|
||||
sphinx:
|
||||
configuration: docs/source/conf.py
|
||||
|
||||
|
||||
|
@@ -14,6 +14,7 @@ scipy
|
||||
humanize
|
||||
# mpi4py
|
||||
numpy-stl
|
||||
pre-commit
|
||||
# pycuda
|
||||
# pyopencl
|
||||
terminaltables
|
||||
|
@@ -19,16 +19,15 @@
|
||||
import logging
|
||||
import sys
|
||||
from pathlib import Path
|
||||
from colorama import Fore, Style
|
||||
|
||||
import h5py
|
||||
import matplotlib.pyplot as plt
|
||||
import numpy as np
|
||||
from colorama import Fore, Style
|
||||
|
||||
import gprMax
|
||||
from testing.analytical_solutions import hertzian_dipole_fs
|
||||
|
||||
from gprMax.utilities.logging import logging_config
|
||||
from testing.analytical_solutions import hertzian_dipole_fs
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
logging_config(name=__name__)
|
||||
|
@@ -1,5 +1,5 @@
|
||||
from matplotlib import pyplot as plt
|
||||
import numpy as np
|
||||
from matplotlib import pyplot as plt
|
||||
|
||||
|
||||
def _plot_data(subplots, time, data, label=None, colour="r", line_style="-"):
|
||||
|
@@ -138,7 +138,9 @@ if __name__ == "__main__":
|
||||
usage="cd gprMax; python -m tools.outputfiles_merge basefilename",
|
||||
)
|
||||
parser.add_argument("basefilename", help="base name of output file series including path")
|
||||
parser.add_argument("-o", "--output-file", default=None, type=str, required=False, help="location to save merged file")
|
||||
parser.add_argument(
|
||||
"-o", "--output-file", default=None, type=str, required=False, help="location to save merged file"
|
||||
)
|
||||
parser.add_argument(
|
||||
"--remove-files", action="store_true", default=False, help="flag to remove individual output files after merge"
|
||||
)
|
||||
|
在新工单中引用
屏蔽一个用户