Skip to content

Commit

Permalink
fix black, submodules
Browse files Browse the repository at this point in the history
  • Loading branch information
tylerflex committed May 23, 2024
1 parent 5460886 commit 54c1f7b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
9 changes: 2 additions & 7 deletions tests/test_plugins/test_mode_solver.py
Original file line number Diff line number Diff line change
Expand Up @@ -170,8 +170,6 @@ def mock_download(resource_id, remote_filename, to_file, *args, **kwargs):
)




def test_compute_modes():
"""Test direct call to `compute_modes`."""
eps_cross = np.random.rand(10, 10)
Expand Down Expand Up @@ -869,6 +867,7 @@ def test_mode_solver_method_defaults():
sim = ms.sim_with_monitor(name="test")
assert np.allclose(sim.monitors[-1].freqs, ms.freqs)


@responses.activate
def test_mode_solver_web_run_batch(mock_remote_api):
"""Testing run_batch function for the web mode solver."""
Expand Down Expand Up @@ -905,11 +904,7 @@ def test_mode_solver_web_run_batch(mock_remote_api):
)

# Run mode solver one at a time
results = msweb.run_batch(
mode_solver_list,
verbose=False,
folder_name="Mode Solver"
)
results = msweb.run_batch(mode_solver_list, verbose=False, folder_name="Mode Solver")
[print(type(x)) for x in results]
assert all([isinstance(x, ModeSolverData) for x in results])
assert (results[i].n_eff.shape == (num_freqs, i + 1) for i in range(num_of_sims))

0 comments on commit 54c1f7b

Please sign in to comment.