diff --git a/aiapy/data/__init__.py b/aiapy/data/__init__.py index 3c316cf..e69de29 100644 --- a/aiapy/data/__init__.py +++ b/aiapy/data/__init__.py @@ -1,3 +0,0 @@ -from aiapy.data._sample import download_sample_data - -__all__ = ["download_sample_data"] diff --git a/aiapy/tests/test_idl.py b/aiapy/tests/test_idl.py index 9a0f82f..37846a9 100644 --- a/aiapy/tests/test_idl.py +++ b/aiapy/tests/test_idl.py @@ -58,14 +58,15 @@ def test_error_consistent(idl_environment, channel, counts, include_eve, include assert u.allclose(error, error_ssw, rtol=1e-4) -@pytest.mark.parametrize("channel", CHANNELS) -def psf_idl(idl_environment, channels): + +@pytest.fixture(params=CHANNELS) +def psf_idl(idl_environment, request): """ The point spread function as calculated by aia_calc_psf.pro. """ r = idl_environment.run( "psf = aia_calc_psf({{channel}},/use_preflightcore)", - args={"channel": f"{channels[0].value:.0f}"}, + args={"channel": f"{request.value:.0f}"}, save_vars=["psf"], verbose=False, ) diff --git a/tox.ini b/tox.ini index d531f07..5fb60f4 100644 --- a/tox.ini +++ b/tox.ini @@ -42,7 +42,7 @@ extras = docs commands = pip freeze --all --no-input - sphinx-build -j auto --color -W --keep-going -b html -d _build/.doctrees . _build/html {posargs} + sphinx-build --color -W --keep-going -b html -d _build/.doctrees . _build/html {posargs} python -c 'import pathlib; print("Documentation available under file://\{0\}".format(pathlib.Path(r"{toxinidir}") / "docs" / "_build" / "index.html"))' [testenv:codestyle]