From 751dc0bab10a0a4040d4167ef41e265820d3f325 Mon Sep 17 00:00:00 2001 From: Phoebe Pearce Date: Mon, 23 Sep 2024 14:07:38 +0200 Subject: [PATCH] fix failing tests --- docs/news.rst | 4 +++- tests/test_rigorous_coupled_wave.py | 2 +- tests/test_transfer_matrix_method.py | 4 ++-- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/docs/news.rst b/docs/news.rst index f1a71af..f5538f1 100644 --- a/docs/news.rst +++ b/docs/news.rst @@ -22,7 +22,9 @@ Version 2.0.0 released (2024-09-23) opening angles between 45 and 54 degrees). Note that the calculation of absorption profiles in interface layers is not yet implemented for this method (though this is on the roadmap, as there is no fundamental reason this cannot be done). Absorption in bulk layers is calculated as usual if the analytical method is used. This option - can be toggled on per surface in an rt_structure object, see :ref:`here `. + can be toggled on per surface in an rt_structure object, see :ref:`here `. The analytical method is not + yet implemented for calculating redistribution matrices (for the angular redistribution method), but this is + planned for the next minor release. - **Phong scattering**: a new option for the ray-tracer, which allows additional non-specular scattering. The continuum between perfectly specular and Lambertian scattering can be controlled with the Phong exponent; see the documentation :ref:`here `. diff --git a/tests/test_rigorous_coupled_wave.py b/tests/test_rigorous_coupled_wave.py index d167552..6d53dfa 100644 --- a/tests/test_rigorous_coupled_wave.py +++ b/tests/test_rigorous_coupled_wave.py @@ -32,7 +32,7 @@ def test_RAT(RCWA_method): "n_theta_bins": 100, "c_azimuth": 1e-7, "pol": "u", - "wavelengths": RCWA_wl, + "wavelength": RCWA_wl, "theta_in": 0, "phi_in": 0, "parallel": True, diff --git a/tests/test_transfer_matrix_method.py b/tests/test_transfer_matrix_method.py index 3b50eee..2929909 100644 --- a/tests/test_transfer_matrix_method.py +++ b/tests/test_transfer_matrix_method.py @@ -5,7 +5,7 @@ def test_tmm_structure(): from rayflare.transfer_matrix_method import tmm_structure - options = dict(wavelengths=np.array([]), pol="s", coherent=True, coherency_list=None, + options = dict(wavelength=np.array([]), pol="s", coherent=True, coherency_list=None, theta_in=0, depth_spacing=10) tmm_setup = tmm_structure([]) RAT = tmm_setup.calculate(options) @@ -37,7 +37,7 @@ def test_inc_coh_tmm(): c_list = [["c", "c", "c", "c"], ["c", "c", "c", "i"], ["c", "i", "i", "c"], ["i", "i", "i", "i"]] - options = dict(wavelengths=wl * 1e-9, pol="u", coherent=False, coherency_list=None, theta_in=0, depth_spacing=10) + options = dict(wavelength=wl * 1e-9, pol="u", coherent=False, coherency_list=None, theta_in=0, depth_spacing=10) results = [] for cl in c_list: