rename SimResult classes to TDResult and FDResult
This commit is contained in:
parent
6f2faca7dc
commit
caa6f995c7
@ -85,7 +85,7 @@ def j_distribution(request, shape, j_mag):
|
|||||||
|
|
||||||
|
|
||||||
@dataclasses.dataclass()
|
@dataclasses.dataclass()
|
||||||
class SimResult:
|
class FDResult:
|
||||||
shape: Tuple[int]
|
shape: Tuple[int]
|
||||||
dxes: List[List[numpy.ndarray]]
|
dxes: List[List[numpy.ndarray]]
|
||||||
epsilon: numpy.ndarray
|
epsilon: numpy.ndarray
|
||||||
@ -108,7 +108,7 @@ def sim(request, shape, epsilon, dxes, j_distribution, omega, pec, pmc):
|
|||||||
matrix_solver_opts={'atol': 1e-15, 'tol': 1e-11})
|
matrix_solver_opts={'atol': 1e-15, 'tol': 1e-11})
|
||||||
e = unvec(e_vec, shape[1:])
|
e = unvec(e_vec, shape[1:])
|
||||||
|
|
||||||
sim = SimResult(
|
sim = FDResult(
|
||||||
shape=shape,
|
shape=shape,
|
||||||
dxes=dxes,
|
dxes=dxes,
|
||||||
epsilon=epsilon,
|
epsilon=epsilon,
|
||||||
|
@ -146,7 +146,7 @@ def dt(request):
|
|||||||
|
|
||||||
|
|
||||||
@dataclasses.dataclass()
|
@dataclasses.dataclass()
|
||||||
class SimResult:
|
class TDResult:
|
||||||
shape: Tuple[int]
|
shape: Tuple[int]
|
||||||
dt: float
|
dt: float
|
||||||
dxes: List[List[numpy.ndarray]]
|
dxes: List[List[numpy.ndarray]]
|
||||||
@ -182,7 +182,7 @@ def sim(request, shape, epsilon, dxes, dt, j_distribution, j_steps):
|
|||||||
if dt != 0.3:
|
if dt != 0.3:
|
||||||
pytest.skip('Skipping dt != 0.3 because test is 3D (for speed)')
|
pytest.skip('Skipping dt != 0.3 because test is 3D (for speed)')
|
||||||
|
|
||||||
sim = SimResult(
|
sim = TDResult(
|
||||||
shape=shape,
|
shape=shape,
|
||||||
dt=dt,
|
dt=dt,
|
||||||
dxes=dxes,
|
dxes=dxes,
|
||||||
|
Loading…
Reference in New Issue
Block a user