Skip to content

Commit

Permalink
Add test for position-dependent efield
Browse files Browse the repository at this point in the history
  • Loading branch information
mhliu0001 committed Sep 29, 2024
1 parent 82f5718 commit a957439
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion tests/test_component.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,18 @@ def benchmark(key):
)
er.compile()
er.lineage_hash
er.simulate_hist(key, batch_size, parameters)
key, h = er.simulate_hist(key, batch_size, parameters)
with pytest.raises(RuntimeError):
key, r = er.multiple_simulations(key, batch_size, parameters, 5, apply_eff=True)

# test efield dependence
er.set_config({"efield_position_dependence": True})
_cached_functions.clear()
er.deduce(
data_names=("cs1", "cs2"),
func_name="er_sim",
force_no_eff=True,
)
er.compile()
er.lineage_hash
key, h = er.simulate_hist(key, batch_size, parameters)

0 comments on commit a957439

Please sign in to comment.