你已经派生过 gprMax
镜像自地址
https://gitee.com/sunhf/gprMax.git
已同步 2025-08-08 07:24:19 +08:00
Use MainGridUserInput as uip type
这个提交包含在:
@@ -26,7 +26,7 @@ from scipy import interpolate
|
||||
|
||||
import gprMax.config as config
|
||||
from gprMax.grid.fdtd_grid import FDTDGrid
|
||||
from gprMax.user_inputs import UserInput
|
||||
from gprMax.user_inputs import MainGridUserInput
|
||||
|
||||
from .cmds_geometry.cmds_geometry import (
|
||||
UserObjectGeometry,
|
||||
@@ -74,7 +74,7 @@ class UserObjectMulti(ABC):
|
||||
return f"{self.hash}: {s[:-1]}"
|
||||
|
||||
@abstractmethod
|
||||
def build(self, grid: FDTDGrid, uip: UserInput):
|
||||
def build(self, grid: FDTDGrid, uip: MainGridUserInput):
|
||||
"""Creates object and adds it to grid."""
|
||||
pass
|
||||
|
||||
|
@@ -23,7 +23,7 @@ import numpy as np
|
||||
|
||||
import gprMax.config as config
|
||||
from gprMax.grid.fdtd_grid import FDTDGrid
|
||||
from gprMax.user_inputs import UserInput
|
||||
from gprMax.user_inputs import MainGridUserInput
|
||||
|
||||
from .pml import PML
|
||||
from .utilities.host_info import set_omp_threads
|
||||
@@ -51,7 +51,7 @@ class UserObjectSingle(ABC):
|
||||
setattr(self.props, k, v)
|
||||
|
||||
@abstractmethod
|
||||
def build(self, grid: FDTDGrid, uip: UserInput):
|
||||
def build(self, grid: FDTDGrid, uip: MainGridUserInput):
|
||||
pass
|
||||
|
||||
# TODO: Check if this is actually needed
|
||||
|
在新工单中引用
屏蔽一个用户