Skip to content

Commit

Permalink
fix refactoring issue with imports, add scheduled testing
Browse files Browse the repository at this point in the history
  • Loading branch information
phoebe-p committed Aug 22, 2024
1 parent c596b28 commit 917592e
Show file tree
Hide file tree
Showing 8 changed files with 12 additions and 12 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ on:

pull_request:

# everyday at 3 am UTC
# schedule:
# - cron: '0 3 * * *'
# weekly
schedule:
- cron: '3 7 * * 4'

jobs:
testing:
Expand Down
2 changes: 1 addition & 1 deletion examples/grating_pyramids_OPTOS.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion examples/perovskite_Si_pyramids_tandem.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion examples/profile_pass.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion examples/profile_pass_matrix.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion tests/test_compare_methods.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion tests/test_errors.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 = [
Expand Down
6 changes: 3 additions & 3 deletions tests/test_utilities.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 917592e

Please sign in to comment.