diff --git a/.github/workflows/testing.yml b/.github/workflows/testing.yml index 3faac80..cb6878f 100644 --- a/.github/workflows/testing.yml +++ b/.github/workflows/testing.yml @@ -5,9 +5,9 @@ on: pull_request: - # everyday at 3 am UTC - # schedule: - # - cron: '0 3 * * *' + # weekly + schedule: + - cron: '3 7 * * 4' jobs: testing: diff --git a/examples/grating_pyramids_OPTOS.py b/examples/grating_pyramids_OPTOS.py index 60a125b..97661b1 100644 --- a/examples/grating_pyramids_OPTOS.py +++ b/examples/grating_pyramids_OPTOS.py @@ -8,7 +8,7 @@ from rayflare.structure import Interface, BulkLayer, Structure from rayflare.matrix_formalism import process_structure, calculate_RAT -from rayflare import get_savepath +from rayflare.utilities import get_savepath from rayflare.transfer_matrix_method import tmm_structure from rayflare.angles import theta_summary, make_angle_vector from rayflare.textures import regular_pyramids diff --git a/examples/perovskite_Si_pyramids_tandem.py b/examples/perovskite_Si_pyramids_tandem.py index 875dcce..7bba6b5 100644 --- a/examples/perovskite_Si_pyramids_tandem.py +++ b/examples/perovskite_Si_pyramids_tandem.py @@ -9,7 +9,7 @@ from rayflare.textures import regular_pyramids from rayflare.structure import Interface, BulkLayer, Structure from rayflare.matrix_formalism import calculate_RAT, process_structure -from rayflare import get_savepath +from rayflare.utilities import get_savepath from rayflare.options import default_options from rayflare.angles import theta_summary, make_angle_vector diff --git a/examples/profile_pass.py b/examples/profile_pass.py index fec38f4..630b5de 100644 --- a/examples/profile_pass.py +++ b/examples/profile_pass.py @@ -5,7 +5,7 @@ from rayflare.rigorous_coupled_wave_analysis import rcwa_structure from rayflare.textures import regular_pyramids, planar_surface from rayflare.options import default_options -from rayflare import make_absorption_function +from rayflare.utilities import make_absorption_function from solcore import material, si from solcore.solar_cell import SolarCell, Layer, Junction diff --git a/examples/profile_pass_matrix.py b/examples/profile_pass_matrix.py index f7750e9..fc9a98c 100644 --- a/examples/profile_pass_matrix.py +++ b/examples/profile_pass_matrix.py @@ -5,7 +5,7 @@ from rayflare.matrix_formalism import calculate_RAT, process_structure from rayflare.options import default_options from rayflare.angles import make_angle_vector -from rayflare import make_absorption_function +from rayflare.utilities import make_absorption_function from solcore import material, si diff --git a/tests/test_compare_methods.py b/tests/test_compare_methods.py index 77ff2df..68b08d2 100644 --- a/tests/test_compare_methods.py +++ b/tests/test_compare_methods.py @@ -1150,7 +1150,7 @@ def test_rcwa_tmm_matrix_profiles(RCWA_method): @mark.skipif(skip_s4_test(), reason="Only works if S4 installed") @mark.parametrize("RCWA_method", ["S4", "Inkstone"]) def test_profile_integration(RCWA_method): - from rayflare import get_savepath + from rayflare.utilities import get_savepath import os import xarray as xr diff --git a/tests/test_errors.py b/tests/test_errors.py index 13e4b5f..5a7eb18 100644 --- a/tests/test_errors.py +++ b/tests/test_errors.py @@ -3,7 +3,7 @@ def test_pol_error(): - from rayflare import process_pol + from rayflare.utilities import process_pol pol_test = ["s", "p", "u", (np.sqrt(2) / 2, np.sqrt(2) / 2)] pol_output = [ diff --git a/tests/test_utilities.py b/tests/test_utilities.py index f63ea1b..cc4c743 100644 --- a/tests/test_utilities.py +++ b/tests/test_utilities.py @@ -4,7 +4,7 @@ @mark.skipif(skip_s4_test(), reason="Only works if S4 installed") def test_tmm_rcwa_profile(): - from rayflare import make_absorption_function + from rayflare.utilities import make_absorption_function from rayflare.transfer_matrix_method import tmm_structure from rayflare.rigorous_coupled_wave_analysis import rcwa_structure from rayflare.options import default_options @@ -163,7 +163,7 @@ def test_matrix_method_profile(): from rayflare.matrix_formalism import calculate_RAT, process_structure from rayflare.options import default_options from rayflare.angles import make_angle_vector - from rayflare import make_absorption_function + from rayflare.utilities import make_absorption_function from solcore import material, si from solcore.solar_cell import Layer @@ -277,7 +277,7 @@ def test_rt_tmm_profile(): from rayflare.ray_tracing import rt_structure from solcore import material, si - from rayflare import make_absorption_function + from rayflare.utilities import make_absorption_function from solcore.solar_cell import SolarCell, Layer, Junction from solcore.solar_cell_solver import solar_cell_solver