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

adding in ACS SBC, WFC3 and ACS narrow, and JWST filters and enhancing the filter plotting routine #799

Merged
merged 24 commits into from
May 23, 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
allow new test to run remotely
  • Loading branch information
karllark committed May 14, 2024
commit 88666afd1d7f1df5ed89dbfb962f551d578331ba
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
from astropy.table import QTable

from beast.config import __ROOT__
from beast.tools import get_libfiles
from beast.observationmodel.vega import Vega
from beast.observationmodel import phot

Expand All @@ -9,6 +10,10 @@ def test_filters_and_vega_consistent():
Test to ensure that the filters.hd5 and vega.hd5 are consistent.
In other words, both have the same filters.
"""

# download the BEAST library files
get_libfiles.get_libfiles(vega_filters_only=True)

ftab = QTable.read(__ROOT__ + "filters.hd5", path="content")
vtab = QTable.read(__ROOT__ + "vega.hd5", path="sed")

Expand Down
6 changes: 4 additions & 2 deletions beast/tools/get_libfiles.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,14 @@ def _download_rename(filename, url_loc, local_loc):
return filename


def get_libfiles():
def get_libfiles(vega_filters_only=False):
"""
Download all the library files needed by the BEAST
"""
for ckey, clib in libs.items():
_download_rename(clib, libs_server, __ROOT__)
if ((not vega_filters_only) or
(vega_filters_only & (ckey in ["vega", "filters"]))):
_download_rename(clib, libs_server, __ROOT__)


if __name__ == "__main__": # pragma: no cover
Expand Down