Skip to content

Commit

Permalink
fix failing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
phoebe-p committed Sep 23, 2024
1 parent 823eef4 commit 751dc0b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
4 changes: 3 additions & 1 deletion docs/news.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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 <textures>`.
can be toggled on per surface in an rt_structure object, see :ref:`here <textures>`. 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 <textures>`.
Expand Down
2 changes: 1 addition & 1 deletion tests/test_rigorous_coupled_wave.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
4 changes: 2 additions & 2 deletions tests/test_transfer_matrix_method.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit 751dc0b

Please sign in to comment.