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