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()
class SimResult:
class FDResult:
shape: Tuple[int]
dxes: List[List[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})
e = unvec(e_vec, shape[1:])
sim = SimResult(
sim = FDResult(
shape=shape,
dxes=dxes,
epsilon=epsilon,

View File

@ -146,7 +146,7 @@ def dt(request):
@dataclasses.dataclass()
class SimResult:
class TDResult:
shape: Tuple[int]
dt: float
dxes: List[List[numpy.ndarray]]
@ -182,7 +182,7 @@ def sim(request, shape, epsilon, dxes, dt, j_distribution, j_steps):
if dt != 0.3:
pytest.skip('Skipping dt != 0.3 because test is 3D (for speed)')
sim = SimResult(
sim = TDResult(
shape=shape,
dt=dt,
dxes=dxes,