Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor reference file loading #233

Merged
merged 16 commits into from
Dec 16, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Trying to figure out why some tests suddenly fail in Python 3.11.
  • Loading branch information
hpparvi committed Nov 29, 2024
commit cedb9afeb911397d2bc2c652303985a9241e6076
2 changes: 1 addition & 1 deletion specreduce/tests/test_linelists.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ def test_pypeit_nonexisting_lamp():
Test to make sure a warning is raised if the lamp list includes a bad lamp name.
"""
with pytest.warns(UserWarning, match='NeJ not in the list'):
load_pypeit_calibration_lines(["HeI", "NeJ"], cache=True, show_progress=False)
line_tab = load_pypeit_calibration_lines(["HeI", "NeJ"], cache=True, show_progress=False) # noqa


@pytest.mark.remote_data
Expand Down
2 changes: 1 addition & 1 deletion specreduce/tests/test_specphot_stds.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ def test_load_MAST():
@pytest.mark.remote_data
def test_load_MAST_bad_filename():
with pytest.warns(AstropyUserWarning, match="Downloading of"):
load_MAST_calspec("j191b2b_005.fits", show_progress=False)
sp = load_MAST_calspec("j191b2b_005.fits", show_progress=False) # noqa


@pytest.mark.remote_data
Expand Down
Loading