diff --git a/tests/test_component.py b/tests/test_component.py index 70ed06b..ed2e1e0 100644 --- a/tests/test_component.py +++ b/tests/test_component.py @@ -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)