Skip to content

Commit

Permalink
refactor: move functions required for tests into the package under _t…
Browse files Browse the repository at this point in the history
…est_utils
  • Loading branch information
steven-murray committed Nov 8, 2024
1 parent 7cc7068 commit 6a9fa77
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 11 deletions.
2 changes: 1 addition & 1 deletion tests/__init__.py → src/matvis/_test_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
from pyuvsim import simsetup
from pyuvsim.telescope import BeamList

from matvis import DATA_PATH, coordinates
from matvis import DATA_PATH

nfreq = 1
ntime = 5 # 20
Expand Down
5 changes: 1 addition & 4 deletions tests/test_beam_interp_gpu.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,8 @@
pytest.importorskip("cupy")

import numpy as np
from pyuvdata import UVBeam

from matvis import DATA_PATH
from matvis.core.beams import prepare_beam_unpolarized
from matvis.gpu.beams import gpu_beam_interpolation, prepare_for_map_coords
from matvis.gpu.beams import gpu_beam_interpolation


def test_identity():
Expand Down
3 changes: 1 addition & 2 deletions tests/test_compare_pyuvsim.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@
from pyuvsim import simsetup, uvsim

from matvis import simulate_vis

from . import get_standard_sim_params, nants
from matvis._test_utils import get_standard_sim_params, nants


@pytest.fixture(scope="function")
Expand Down
3 changes: 1 addition & 2 deletions tests/test_cpu_vs_gpu.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@
import numpy as np

from matvis import simulate_vis

from . import get_standard_sim_params, nants
from matvis._test_utils import get_standard_sim_params, nants


@pytest.mark.parametrize("polarized", (True, False))
Expand Down
3 changes: 1 addition & 2 deletions tests/test_matvis_gpu.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@
from pyuvdata.analytic_beam import GaussianBeam

from matvis import simulate_vis

from . import get_standard_sim_params
from matvis._test_utils import get_standard_sim_params


def test_antizenith():
Expand Down

0 comments on commit 6a9fa77

Please sign in to comment.