rename SimResult classes to TDResult and FDResult

This commit is contained in:
Jan Petykiewicz 2019-11-22 00:56:35 -08:00
parent 6f2faca7dc
commit caa6f995c7
2 changed files with 4 additions and 4 deletions

View File

@ -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,

View File

@ -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,