你已经派生过 gprMax
镜像自地址
https://gitee.com/sunhf/gprMax.git
已同步 2025-08-07 23:14:03 +08:00
Fix wrongly placed parenthesis.
这个提交包含在:
@@ -235,17 +235,17 @@ class VoltageSource(UserObjectMulti):
|
|||||||
logger.exception(self.params_str() + (' polarisation must be '
|
logger.exception(self.params_str() + (' polarisation must be '
|
||||||
'x, y, or z.'))
|
'x, y, or z.'))
|
||||||
raise ValueError
|
raise ValueError
|
||||||
if '2D TMx' in (config.get_model_config().mode and
|
if ('2D TMx' in config.get_model_config().mode and
|
||||||
(polarisation == 'y' or polarisation == 'z')):
|
(polarisation == 'y' or polarisation == 'z')):
|
||||||
logger.exception(self.params_str() + (' polarisation must be x in '
|
logger.exception(self.params_str() + (' polarisation must be x in '
|
||||||
'2D TMx mode.'))
|
'2D TMx mode.'))
|
||||||
raise ValueError
|
raise ValueError
|
||||||
elif '2D TMy' in (config.get_model_config().mode and
|
elif ('2D TMy' in config.get_model_config().mode and
|
||||||
(polarisation == 'x' or polarisation == 'z')):
|
(polarisation == 'x' or polarisation == 'z')):
|
||||||
logger.exception(self.params_str() + (' polarisation must be y in '
|
logger.exception(self.params_str() + (' polarisation must be y in '
|
||||||
'2D TMy mode.'))
|
'2D TMy mode.'))
|
||||||
raise ValueError
|
raise ValueError
|
||||||
elif '2D TMz' in (config.get_model_config().mode and
|
elif ('2D TMz' in config.get_model_config().mode and
|
||||||
(polarisation == 'x' or polarisation == 'y')):
|
(polarisation == 'x' or polarisation == 'y')):
|
||||||
logger.exception(self.params_str() + (' polarisation must be z in '
|
logger.exception(self.params_str() + (' polarisation must be z in '
|
||||||
'2D TMz mode.'))
|
'2D TMz mode.'))
|
||||||
@@ -371,17 +371,17 @@ class HertzianDipole(UserObjectMulti):
|
|||||||
logger.exception(self.params_str() + (' polarisation must be '
|
logger.exception(self.params_str() + (' polarisation must be '
|
||||||
'x, y, or z.'))
|
'x, y, or z.'))
|
||||||
raise ValueError
|
raise ValueError
|
||||||
if '2D TMx' in (config.get_model_config().mode and
|
if ('2D TMx' in config.get_model_config().mode and
|
||||||
(polarisation == 'y' or polarisation == 'z')):
|
(polarisation == 'y' or polarisation == 'z')):
|
||||||
logger.exception(self.params_str() + (' polarisation must be x in '
|
logger.exception(self.params_str() + (' polarisation must be x in '
|
||||||
'2D TMx mode.'))
|
'2D TMx mode.'))
|
||||||
raise ValueError
|
raise ValueError
|
||||||
elif '2D TMy' in (config.get_model_config().mode and
|
elif ('2D TMy' in config.get_model_config().mode and
|
||||||
(polarisation == 'x' or polarisation == 'z')):
|
(polarisation == 'x' or polarisation == 'z')):
|
||||||
logger.exception(self.params_str() + (' polarisation must be y in '
|
logger.exception(self.params_str() + (' polarisation must be y in '
|
||||||
'2D TMy mode.'))
|
'2D TMy mode.'))
|
||||||
raise ValueError
|
raise ValueError
|
||||||
elif '2D TMz' in (config.get_model_config().mode and
|
elif ('2D TMz' in config.get_model_config().mode and
|
||||||
(polarisation == 'x' or polarisation == 'y')):
|
(polarisation == 'x' or polarisation == 'y')):
|
||||||
logger.exception(self.params_str() + (' polarisation must be z in '
|
logger.exception(self.params_str() + (' polarisation must be z in '
|
||||||
'2D TMz mode.'))
|
'2D TMz mode.'))
|
||||||
@@ -518,17 +518,17 @@ class MagneticDipole(UserObjectMulti):
|
|||||||
logger.exception(self.params_str() + (' polarisation must be '
|
logger.exception(self.params_str() + (' polarisation must be '
|
||||||
'x, y, or z.'))
|
'x, y, or z.'))
|
||||||
raise ValueError
|
raise ValueError
|
||||||
if '2D TMx' in (config.get_model_config().mode and
|
if ('2D TMx' in config.get_model_config().mode and
|
||||||
(polarisation == 'y' or polarisation == 'z')):
|
(polarisation == 'y' or polarisation == 'z')):
|
||||||
logger.exception(self.params_str() + (' polarisation must be x in '
|
logger.exception(self.params_str() + (' polarisation must be x in '
|
||||||
'2D TMx mode.'))
|
'2D TMx mode.'))
|
||||||
raise ValueError
|
raise ValueError
|
||||||
elif '2D TMy' in (config.get_model_config().mode and
|
elif ('2D TMy' in config.get_model_config().mode and
|
||||||
(polarisation == 'x' or polarisation == 'z')):
|
(polarisation == 'x' or polarisation == 'z')):
|
||||||
logger.exception(self.params_str() + (' polarisation must be y in '
|
logger.exception(self.params_str() + (' polarisation must be y in '
|
||||||
'2D TMy mode.'))
|
'2D TMy mode.'))
|
||||||
raise ValueError
|
raise ValueError
|
||||||
elif '2D TMz' in (config.get_model_config().mode and
|
elif ('2D TMz' in config.get_model_config().mode and
|
||||||
(polarisation == 'x' or polarisation == 'y')):
|
(polarisation == 'x' or polarisation == 'y')):
|
||||||
logger.exception(self.params_str() + (' polarisation must be z in '
|
logger.exception(self.params_str() + (' polarisation must be z in '
|
||||||
'2D TMz mode.'))
|
'2D TMz mode.'))
|
||||||
@@ -658,17 +658,17 @@ class TransmissionLine(UserObjectMulti):
|
|||||||
logger.exception(self.params_str() + (' polarisation must be '
|
logger.exception(self.params_str() + (' polarisation must be '
|
||||||
'x, y, or z.'))
|
'x, y, or z.'))
|
||||||
raise ValueError
|
raise ValueError
|
||||||
if '2D TMx' in (config.get_model_config().mode and
|
if ('2D TMx' in config.get_model_config().mode and
|
||||||
(polarisation == 'y' or polarisation == 'z')):
|
(polarisation == 'y' or polarisation == 'z')):
|
||||||
logger.exception(self.params_str() + (' polarisation must be x in '
|
logger.exception(self.params_str() + (' polarisation must be x in '
|
||||||
'2D TMx mode.'))
|
'2D TMx mode.'))
|
||||||
raise ValueError
|
raise ValueError
|
||||||
elif '2D TMy' in (config.get_model_config().mode and
|
elif ('2D TMy' in config.get_model_config().mode and
|
||||||
(polarisation == 'x' or polarisation == 'z')):
|
(polarisation == 'x' or polarisation == 'z')):
|
||||||
logger.exception(self.params_str() + (' polarisation must be y in '
|
logger.exception(self.params_str() + (' polarisation must be y in '
|
||||||
'2D TMy mode.'))
|
'2D TMy mode.'))
|
||||||
raise ValueError
|
raise ValueError
|
||||||
elif '2D TMz' in (config.get_model_config().mode and
|
elif ('2D TMz' in config.get_model_config().mode and
|
||||||
(polarisation == 'x' or polarisation == 'y')):
|
(polarisation == 'x' or polarisation == 'y')):
|
||||||
logger.exception(self.params_str() + (' polarisation must be z in '
|
logger.exception(self.params_str() + (' polarisation must be z in '
|
||||||
'2D TMz mode.'))
|
'2D TMz mode.'))
|
||||||
@@ -1196,8 +1196,8 @@ class AddLorentzDispersion(UserObjectMulti):
|
|||||||
try:
|
try:
|
||||||
poles = self.kwargs['poles']
|
poles = self.kwargs['poles']
|
||||||
er_delta = self.kwargs['er_delta']
|
er_delta = self.kwargs['er_delta']
|
||||||
tau = self.kwargs['omega']
|
tau = self.kwargs['tau']
|
||||||
alpha = self.kwargs['delta']
|
alpha = self.kwargs['alpha']
|
||||||
material_ids = self.kwargs['material_ids']
|
material_ids = self.kwargs['material_ids']
|
||||||
except KeyError:
|
except KeyError:
|
||||||
logger.exception(self.params_str() + ' requires at least five '
|
logger.exception(self.params_str() + ' requires at least five '
|
||||||
|
在新工单中引用
屏蔽一个用户