Skip to content

Commit

Permalink
this is wrong
Browse files Browse the repository at this point in the history
  • Loading branch information
nabobalis committed May 11, 2024
1 parent 601cb5b commit 2fc1e9a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
3 changes: 0 additions & 3 deletions aiapy/data/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +0,0 @@
from aiapy.data._sample import download_sample_data

__all__ = ["download_sample_data"]
7 changes: 4 additions & 3 deletions aiapy/tests/test_idl.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
)
Expand Down
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down

0 comments on commit 2fc1e9a

Please sign in to comment.