SPISEA 3.1.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- spisea-3.1.0/.cursor/rules/spisea-synphot-conda.mdc +12 -0
- spisea-3.1.0/.github/workflows/ci.yml +42 -0
- spisea-3.1.0/.github/workflows/nightly.yml +59 -0
- spisea-3.1.0/.github/workflows/publish.yml +55 -0
- spisea-3.1.0/.gitignore +76 -0
- spisea-3.1.0/.readthedocs.yml +34 -0
- spisea-3.1.0/.travis.yml +171 -0
- spisea-3.1.0/Dockerfile +39 -0
- spisea-3.1.0/LICENSE.txt +674 -0
- spisea-3.1.0/PKG-INFO +115 -0
- spisea-3.1.0/README.md +76 -0
- spisea-3.1.0/SPISEA.egg-info/PKG-INFO +115 -0
- spisea-3.1.0/SPISEA.egg-info/SOURCES.txt +303 -0
- spisea-3.1.0/SPISEA.egg-info/dependency_links.txt +1 -0
- spisea-3.1.0/SPISEA.egg-info/requires.txt +20 -0
- spisea-3.1.0/SPISEA.egg-info/top_level.txt +1 -0
- spisea-3.1.0/SPISEA_logo_final.png +0 -0
- spisea-3.1.0/data/grid/k93models/catalog.fits +1 -0
- spisea-3.1.0/data/grid/k93models/km05/km05_9500.fits +102 -0
- spisea-3.1.0/data/grid/k93models/km05/km05_9750.fits +113 -0
- spisea-3.1.0/docs/Makefile +133 -0
- spisea-3.1.0/docs/Quick_Start_Make_Cluster_w_BDs.ipynb +2320 -0
- spisea-3.1.0/docs/_static/custom.css +7 -0
- spisea-3.1.0/docs/_templates/version-badge.html +2 -0
- spisea-3.1.0/docs/add_atmo_models.rst +41 -0
- spisea-3.1.0/docs/add_evo_models.rst +118 -0
- spisea-3.1.0/docs/add_filters.rst +22 -0
- spisea-3.1.0/docs/api.rst +123 -0
- spisea-3.1.0/docs/atmo_models.rst +362 -0
- spisea-3.1.0/docs/conf.py +204 -0
- spisea-3.1.0/docs/contributors.rst +52 -0
- spisea-3.1.0/docs/development.rst +26 -0
- spisea-3.1.0/docs/evo_models.rst +215 -0
- spisea-3.1.0/docs/extinction.rst +104 -0
- spisea-3.1.0/docs/figures/_offner_vs_spisea25.py +136 -0
- spisea-3.1.0/docs/figures/csf_offner_vs_spisea2.5.png +0 -0
- spisea-3.1.0/docs/figures/imf_sampling_flow.svg +37 -0
- spisea-3.1.0/docs/figures/meanq_offner_vs_spisea2.5.png +0 -0
- spisea-3.1.0/docs/figures/mf_offner_vs_spisea2.5.png +0 -0
- spisea-3.1.0/docs/figures/plot_csf_offner_vs_spisea2.5.py +119 -0
- spisea-3.1.0/docs/figures/plot_meanq_offner_vs_spisea2.5.py +68 -0
- spisea-3.1.0/docs/figures/plot_mf_offner_vs_spisea2.5.py +136 -0
- spisea-3.1.0/docs/figures/plot_q_offner_vs_spisea2.5.py +72 -0
- spisea-3.1.0/docs/figures/plot_q_sep_offner_vs_spisea2.5.py +35 -0
- spisea-3.1.0/docs/figures/plot_sep_offner_vs_spisea2.5.py +77 -0
- spisea-3.1.0/docs/figures/plot_sig_loga_offner_vs_spisea2.5.py +71 -0
- spisea-3.1.0/docs/figures/plot_wd_koester_blackbody.py +513 -0
- spisea-3.1.0/docs/figures/q_offner_vs_spisea2.5.png +0 -0
- spisea-3.1.0/docs/figures/sep_offner_vs_spisea2.5.png +0 -0
- spisea-3.1.0/docs/figures/sig_loga_offner_vs_spisea2.5.png +0 -0
- spisea-3.1.0/docs/figures/wd_koester_bb_join.png +0 -0
- spisea-3.1.0/docs/figures/wd_koester_bb_sed.png +0 -0
- spisea-3.1.0/docs/filters.rst +369 -0
- spisea-3.1.0/docs/for_model_fileserver/index.html +389 -0
- spisea-3.1.0/docs/getting_started.rst +354 -0
- spisea-3.1.0/docs/ifmr.rst +45 -0
- spisea-3.1.0/docs/images/WRstars_example.png +0 -0
- spisea-3.1.0/docs/images/atm_models.png +0 -0
- spisea-3.1.0/docs/images/clust_unresolved_example.png +0 -0
- spisea-3.1.0/docs/images/cluster_cmd_example.png +0 -0
- spisea-3.1.0/docs/images/cluster_table.png +0 -0
- spisea-3.1.0/docs/images/cmd_example.png +0 -0
- spisea-3.1.0/docs/images/compact_remnants_example.png +0 -0
- spisea-3.1.0/docs/images/evo_models_f2.png +0 -0
- spisea-3.1.0/docs/images/imf_comp_example.png +0 -0
- spisea-3.1.0/docs/images/iso_cmd_example.png +0 -0
- spisea-3.1.0/docs/images/iso_comp_example.pdf +0 -0
- spisea-3.1.0/docs/images/iso_comp_example.png +0 -0
- spisea-3.1.0/docs/images/isochrone_table.png +0 -0
- spisea-3.1.0/docs/images/logo.pdf +0 -0
- spisea-3.1.0/docs/images/logo.png +0 -0
- spisea-3.1.0/docs/images/simulated_cluster_example.png +0 -0
- spisea-3.1.0/docs/imf.rst +164 -0
- spisea-3.1.0/docs/index.rst +267 -0
- spisea-3.1.0/docs/joss_paper/paper.md +86 -0
- spisea-3.1.0/docs/joss_paper/references.bib +217 -0
- spisea-3.1.0/docs/make.bat +172 -0
- spisea-3.1.0/docs/make_cluster.rst +107 -0
- spisea-3.1.0/docs/make_isochrone.rst +142 -0
- spisea-3.1.0/docs/more_examples.rst +69 -0
- spisea-3.1.0/docs/multiplicity.rst +159 -0
- spisea-3.1.0/docs/notebooks/01_make_cluster.ipynb +813 -0
- spisea-3.1.0/docs/notebooks/02_brown_dwarfs.ipynb +354 -0
- spisea-3.1.0/docs/notebooks/03_resolved_multiples.ipynb +244 -0
- spisea-3.1.0/docs/notebooks/04_cluster_with_cosmic.ipynb +1544 -0
- spisea-3.1.0/docs/notebooks/papers/begbie2026/README +3 -0
- spisea-3.1.0/docs/notebooks/papers/begbie2026/cluster_data/13386c89-f30e-11f0-a3b5-bc97e148b76b-O-result.fits +466 -0
- spisea-3.1.0/docs/notebooks/papers/begbie2026/cluster_data/9b2caaac-f8ae-11f0-9655-bc97e148b76b-O-result.fits +503 -0
- spisea-3.1.0/docs/notebooks/papers/begbie2026/cluster_data/apj491325t1_mrt.txt +1086 -0
- spisea-3.1.0/docs/notebooks/papers/begbie2026/cluster_data/asu (2).fit +2694 -0
- spisea-3.1.0/docs/notebooks/papers/begbie2026/cluster_data/asu (3).fit +174 -0
- spisea-3.1.0/docs/notebooks/papers/begbie2026/cluster_data/asu.fit +2694 -0
- spisea-3.1.0/docs/notebooks/papers/begbie2026/fig02_bd_imfs.ipynb +115 -0
- spisea-3.1.0/docs/notebooks/papers/begbie2026/fig03_atmosphere_interpolation.ipynb +173 -0
- spisea-3.1.0/docs/notebooks/papers/begbie2026/fig04_evolution_interpolation.ipynb +213 -0
- spisea-3.1.0/docs/notebooks/papers/begbie2026/fig05_hrd_ages.ipynb +201 -0
- spisea-3.1.0/docs/notebooks/papers/begbie2026/fig06_pleiades_gaia.ipynb +373 -0
- spisea-3.1.0/docs/notebooks/papers/begbie2026/fig07_pleiades_ukidss.ipynb +347 -0
- spisea-3.1.0/docs/notebooks/papers/begbie2026/fig08_upper_sco.ipynb +377 -0
- spisea-3.1.0/docs/notebooks/papers/begbie2026/fig09_m44.ipynb +298 -0
- spisea-3.1.0/docs/notebooks/papers/begbie2026/fig10_mass_fraction.ipynb +106 -0
- spisea-3.1.0/docs/notebooks/papers/begbie2026/fig11_companion_counts.ipynb +122 -0
- spisea-3.1.0/docs/notebooks/papers/begbie2026/fig12_bd_separations.ipynb +103 -0
- spisea-3.1.0/docs/notebooks/papers/hosek2020/README +3 -0
- spisea-3.1.0/docs/notebooks/papers/hosek2020/fig02_hrd_extinction.ipynb +203 -0
- spisea-3.1.0/docs/notebooks/papers/hosek2020/fig03_cmds_metallicity.ipynb +236 -0
- spisea-3.1.0/docs/notebooks/papers/hosek2020/fig04_multiplicity_extinction.ipynb +365 -0
- spisea-3.1.0/docs/notebooks/papers/hosek2020/fig05_imfs.ipynb +205 -0
- spisea-3.1.0/docs/notebooks/papers/hosek2020/fig06_wolf_rayet.ipynb +18832 -0
- spisea-3.1.0/docs/notebooks/papers/hosek2020/fig07_unresolved_spectra.ipynb +232 -0
- spisea-3.1.0/docs/paper_examples_begbie2026.rst +31 -0
- spisea-3.1.0/docs/paper_examples_hosek2020.rst +25 -0
- spisea-3.1.0/docs/quick_start.rst +102 -0
- spisea-3.1.0/docs/release_runbook_v3.1.md +217 -0
- spisea-3.1.0/docs/requirements.txt +15 -0
- spisea-3.1.0/docs/version_switch.rst +56 -0
- spisea-3.1.0/pyproject.toml +123 -0
- spisea-3.1.0/setup.cfg +4 -0
- spisea-3.1.0/spisea/__init__.py +7 -0
- spisea-3.1.0/spisea/atmospheres.py +3721 -0
- spisea-3.1.0/spisea/data/README.rst +6 -0
- spisea-3.1.0/spisea/el_files/fritz11_EL_table2.txt +22 -0
- spisea-3.1.0/spisea/el_files/fritz11_EL_table8.fits +0 -0
- spisea-3.1.0/spisea/evolution.py +2660 -0
- spisea-3.1.0/spisea/exceptions.py +24 -0
- spisea-3.1.0/spisea/extern/__init__.py +7 -0
- spisea-3.1.0/spisea/filt_func/2mass/H.dat +58 -0
- spisea-3.1.0/spisea/filt_func/2mass/J.dat +107 -0
- spisea-3.1.0/spisea/filt_func/2mass/Ks.dat +76 -0
- spisea-3.1.0/spisea/filt_func/CTIO_OSIRIS/H.txt +700 -0
- spisea-3.1.0/spisea/filt_func/CTIO_OSIRIS/K.txt +814 -0
- spisea-3.1.0/spisea/filt_func/Johnson_Glass/#H.txt# +25 -0
- spisea-3.1.0/spisea/filt_func/Johnson_Glass/H.txt +29 -0
- spisea-3.1.0/spisea/filt_func/Johnson_Glass/J.txt +21 -0
- spisea-3.1.0/spisea/filt_func/Johnson_Glass/K.txt +25 -0
- spisea-3.1.0/spisea/filt_func/Johnson_Glass/README.txt +1 -0
- spisea-3.1.0/spisea/filt_func/Johnson_Glass/iso_6.70_0.00_01000.fits +34 -0
- spisea-3.1.0/spisea/filt_func/bessell/B.dat +21 -0
- spisea-3.1.0/spisea/filt_func/bessell/I.dat +23 -0
- spisea-3.1.0/spisea/filt_func/bessell/R.dat +24 -0
- spisea-3.1.0/spisea/filt_func/bessell/README.txt +4 -0
- spisea-3.1.0/spisea/filt_func/bessell/U.dat +25 -0
- spisea-3.1.0/spisea/filt_func/bessell/V.dat +24 -0
- spisea-3.1.0/spisea/filt_func/decam/CTIO_DECam.Y.dat +281 -0
- spisea-3.1.0/spisea/filt_func/decam/CTIO_DECam.g.dat +355 -0
- spisea-3.1.0/spisea/filt_func/decam/CTIO_DECam.i.dat +391 -0
- spisea-3.1.0/spisea/filt_func/decam/CTIO_DECam.r.dat +391 -0
- spisea-3.1.0/spisea/filt_func/decam/CTIO_DECam.u.dat +75 -0
- spisea-3.1.0/spisea/filt_func/decam/CTIO_DECam.z.dat +381 -0
- spisea-3.1.0/spisea/filt_func/euclid/H.dat +743 -0
- spisea-3.1.0/spisea/filt_func/euclid/J.dat +693 -0
- spisea-3.1.0/spisea/filt_func/euclid/VIS.dat +551 -0
- spisea-3.1.0/spisea/filt_func/euclid/Y.dat +343 -0
- spisea-3.1.0/spisea/filt_func/gaia/dr1/Gaia_passbands.txt +364 -0
- spisea-3.1.0/spisea/filt_func/gaia/dr1/README +1 -0
- spisea-3.1.0/spisea/filt_func/gaia/dr2/GaiaDR2_ReadMe +110 -0
- spisea-3.1.0/spisea/filt_func/gaia/dr2/Gaia_passbands.txt +3201 -0
- spisea-3.1.0/spisea/filt_func/gaia/dr2/README +1 -0
- spisea-3.1.0/spisea/filt_func/gaia/dr2_rev/GaiaDR2_ReadMe +110 -0
- spisea-3.1.0/spisea/filt_func/gaia/dr2_rev/Gaia_passbands.txt +3201 -0
- spisea-3.1.0/spisea/filt_func/gaia/dr2_rev/README +1 -0
- spisea-3.1.0/spisea/filt_func/gaia/edr3/Gaia_passbands.txt +781 -0
- spisea-3.1.0/spisea/filt_func/gaia/edr3/ReadMe +134 -0
- spisea-3.1.0/spisea/filt_func/hawki/H.dat +1255 -0
- spisea-3.1.0/spisea/filt_func/hawki/J.dat +1255 -0
- spisea-3.1.0/spisea/filt_func/hawki/Ks.dat +1255 -0
- spisea-3.1.0/spisea/filt_func/hipparcos/Hp.dat +115 -0
- spisea-3.1.0/spisea/filt_func/jwst/F070W.txt +305 -0
- spisea-3.1.0/spisea/filt_func/jwst/F090W.txt +327 -0
- spisea-3.1.0/spisea/filt_func/jwst/F115W.txt +390 -0
- spisea-3.1.0/spisea/filt_func/jwst/F140M.txt +306 -0
- spisea-3.1.0/spisea/filt_func/jwst/F150W.txt +505 -0
- spisea-3.1.0/spisea/filt_func/jwst/F150W2.txt +1986 -0
- spisea-3.1.0/spisea/filt_func/jwst/F162M.txt +476 -0
- spisea-3.1.0/spisea/filt_func/jwst/F164N.txt +206 -0
- spisea-3.1.0/spisea/filt_func/jwst/F182M.txt +506 -0
- spisea-3.1.0/spisea/filt_func/jwst/F187N.txt +256 -0
- spisea-3.1.0/spisea/filt_func/jwst/F200W.txt +619 -0
- spisea-3.1.0/spisea/filt_func/jwst/F210M.txt +407 -0
- spisea-3.1.0/spisea/filt_func/jwst/F212N.txt +206 -0
- spisea-3.1.0/spisea/filt_func/jwst/F250M.txt +339 -0
- spisea-3.1.0/spisea/filt_func/jwst/F277W.txt +1011 -0
- spisea-3.1.0/spisea/filt_func/jwst/F300M.txt +524 -0
- spisea-3.1.0/spisea/filt_func/jwst/F322W2.txt +1426 -0
- spisea-3.1.0/spisea/filt_func/jwst/F323N.txt +154 -0
- spisea-3.1.0/spisea/filt_func/jwst/F335M.txt +709 -0
- spisea-3.1.0/spisea/filt_func/jwst/F356W.txt +950 -0
- spisea-3.1.0/spisea/filt_func/jwst/F360M.txt +746 -0
- spisea-3.1.0/spisea/filt_func/jwst/F405N.txt +154 -0
- spisea-3.1.0/spisea/filt_func/jwst/F410M.txt +673 -0
- spisea-3.1.0/spisea/filt_func/jwst/F430M.txt +412 -0
- spisea-3.1.0/spisea/filt_func/jwst/F444W.txt +1150 -0
- spisea-3.1.0/spisea/filt_func/jwst/F460M.txt +561 -0
- spisea-3.1.0/spisea/filt_func/jwst/F466N.txt +192 -0
- spisea-3.1.0/spisea/filt_func/jwst/F470N.txt +192 -0
- spisea-3.1.0/spisea/filt_func/jwst/F480M.txt +450 -0
- spisea-3.1.0/spisea/filt_func/jwst/README.txt +1 -0
- spisea-3.1.0/spisea/filt_func/jwst/script.txt +29 -0
- spisea-3.1.0/spisea/filt_func/kepler/Kp.dat +625 -0
- spisea-3.1.0/spisea/filt_func/naco/H.dat +25 -0
- spisea-3.1.0/spisea/filt_func/naco/IB_2.00.dat +48 -0
- spisea-3.1.0/spisea/filt_func/naco/IB_2.03.dat +51 -0
- spisea-3.1.0/spisea/filt_func/naco/IB_2.06.dat +50 -0
- spisea-3.1.0/spisea/filt_func/naco/IB_2.24.dat +47 -0
- spisea-3.1.0/spisea/filt_func/naco/IB_2.27.dat +48 -0
- spisea-3.1.0/spisea/filt_func/naco/IB_2.30.dat +52 -0
- spisea-3.1.0/spisea/filt_func/naco/IB_2.33.dat +54 -0
- spisea-3.1.0/spisea/filt_func/naco/IB_2.36.dat +51 -0
- spisea-3.1.0/spisea/filt_func/naco/J.dat +22 -0
- spisea-3.1.0/spisea/filt_func/naco/Ks.dat +29 -0
- spisea-3.1.0/spisea/filt_func/naco/README.txt +1 -0
- spisea-3.1.0/spisea/filt_func/nirc1/H.txt +134 -0
- spisea-3.1.0/spisea/filt_func/nirc1/K.txt +140 -0
- spisea-3.1.0/spisea/filt_func/nirc2/Brgamma.dat +1724 -0
- spisea-3.1.0/spisea/filt_func/nirc2/FeII.dat +1198 -0
- spisea-3.1.0/spisea/filt_func/nirc2/H.dat +1905 -0
- spisea-3.1.0/spisea/filt_func/nirc2/Hcont.dat +1619 -0
- spisea-3.1.0/spisea/filt_func/nirc2/J.dat +1821 -0
- spisea-3.1.0/spisea/filt_func/nirc2/K.dat +2248 -0
- spisea-3.1.0/spisea/filt_func/nirc2/Kcont.dat +2052 -0
- spisea-3.1.0/spisea/filt_func/nirc2/Kp.dat +2259 -0
- spisea-3.1.0/spisea/filt_func/nirc2/Ks.dat +2179 -0
- spisea-3.1.0/spisea/filt_func/nirc2/Lp.dat +2300 -0
- spisea-3.1.0/spisea/filt_func/nirc2/Ms.dat +1598 -0
- spisea-3.1.0/spisea/filt_func/nirc2/filter_passbands.xls +0 -0
- spisea-3.1.0/spisea/filt_func/nirc2/wfc3_ir_F125W.dat.html +6562 -0
- spisea-3.1.0/spisea/filt_func/nsfcam/L.dat +390 -0
- spisea-3.1.0/spisea/filt_func/ogle/I.dat +683 -0
- spisea-3.1.0/spisea/filt_func/ogle/ReadMe.txt +4 -0
- spisea-3.1.0/spisea/filt_func/ogle/Rw.dat +802 -0
- spisea-3.1.0/spisea/filt_func/ogle/V.dat +683 -0
- spisea-3.1.0/spisea/filt_func/ps1/PS1_README.txt +26 -0
- spisea-3.1.0/spisea/filt_func/ps1/PS1_filters.txt +721 -0
- spisea-3.1.0/spisea/filt_func/rubin/README.txt +5 -0
- spisea-3.1.0/spisea/filt_func/rubin/g.dat +8508 -0
- spisea-3.1.0/spisea/filt_func/rubin/i.dat +8508 -0
- spisea-3.1.0/spisea/filt_func/rubin/r.dat +8508 -0
- spisea-3.1.0/spisea/filt_func/rubin/u.dat +8508 -0
- spisea-3.1.0/spisea/filt_func/rubin/y.dat +8508 -0
- spisea-3.1.0/spisea/filt_func/rubin/z.dat +8508 -0
- spisea-3.1.0/spisea/filt_func/subaru/hsc/Y.dat +96 -0
- spisea-3.1.0/spisea/filt_func/subaru/hsc/g.dat +187 -0
- spisea-3.1.0/spisea/filt_func/subaru/hsc/i.dat +566 -0
- spisea-3.1.0/spisea/filt_func/subaru/hsc/nb387.dat +38 -0
- spisea-3.1.0/spisea/filt_func/subaru/hsc/nb468.dat +54 -0
- spisea-3.1.0/spisea/filt_func/subaru/hsc/nb515.dat +35 -0
- spisea-3.1.0/spisea/filt_func/subaru/hsc/nb527.dat +40 -0
- spisea-3.1.0/spisea/filt_func/subaru/hsc/nb656.dat +52 -0
- spisea-3.1.0/spisea/filt_func/subaru/hsc/nb718.dat +74 -0
- spisea-3.1.0/spisea/filt_func/subaru/hsc/nb816.dat +74 -0
- spisea-3.1.0/spisea/filt_func/subaru/hsc/nb921.dat +961 -0
- spisea-3.1.0/spisea/filt_func/subaru/hsc/nb926.dat +94 -0
- spisea-3.1.0/spisea/filt_func/subaru/hsc/nb973.dat +99 -0
- spisea-3.1.0/spisea/filt_func/subaru/hsc/r.dat +582 -0
- spisea-3.1.0/spisea/filt_func/subaru/hsc/z.dat +65 -0
- spisea-3.1.0/spisea/filt_func/tess/tess.dat +857 -0
- spisea-3.1.0/spisea/filt_func/tycho/B.dat +34 -0
- spisea-3.1.0/spisea/filt_func/tycho/V.dat +47 -0
- spisea-3.1.0/spisea/filt_func/ubv/B.dat +1502 -0
- spisea-3.1.0/spisea/filt_func/ubv/I.dat +1402 -0
- spisea-3.1.0/spisea/filt_func/ubv/R.dat +1402 -0
- spisea-3.1.0/spisea/filt_func/ubv/README.txt +8 -0
- spisea-3.1.0/spisea/filt_func/ubv/U.dat +1585 -0
- spisea-3.1.0/spisea/filt_func/ubv/V.dat +1527 -0
- spisea-3.1.0/spisea/filt_func/ukirt/H.dat +1204 -0
- spisea-3.1.0/spisea/filt_func/ukirt/J.dat +803 -0
- spisea-3.1.0/spisea/filt_func/ukirt/K.dat +1203 -0
- spisea-3.1.0/spisea/filt_func/ukirt/README.txt +2 -0
- spisea-3.1.0/spisea/filt_func/ukirt/Y.dat +603 -0
- spisea-3.1.0/spisea/filt_func/ukirt/Z.dat +466 -0
- spisea-3.1.0/spisea/filt_func/vista/VISTA_Filters_at80K_forETC_H.dat +2176 -0
- spisea-3.1.0/spisea/filt_func/vista/VISTA_Filters_at80K_forETC_J.dat +2176 -0
- spisea-3.1.0/spisea/filt_func/vista/VISTA_Filters_at80K_forETC_Ks.dat +2176 -0
- spisea-3.1.0/spisea/filt_func/vista/VISTA_Filters_at80K_forETC_Y.dat +2439 -0
- spisea-3.1.0/spisea/filt_func/vista/VISTA_Filters_at80K_forETC_Z.dat +9801 -0
- spisea-3.1.0/spisea/filt_func/washington/C.dat +24 -0
- spisea-3.1.0/spisea/filt_func/washington/M.dat +21 -0
- spisea-3.1.0/spisea/filt_func/washington/T1.dat +21 -0
- spisea-3.1.0/spisea/filt_func/washington/T2.dat +20 -0
- spisea-3.1.0/spisea/filt_func/ztf/README.txt +13 -0
- spisea-3.1.0/spisea/filt_func/ztf/g.dat +1974 -0
- spisea-3.1.0/spisea/filt_func/ztf/i.dat +4002 -0
- spisea-3.1.0/spisea/filt_func/ztf/r.dat +3202 -0
- spisea-3.1.0/spisea/filters.py +765 -0
- spisea-3.1.0/spisea/ifmr.py +1083 -0
- spisea-3.1.0/spisea/imf/__init__.py +1 -0
- spisea-3.1.0/spisea/imf/imf.py +1398 -0
- spisea-3.1.0/spisea/imf/multiplicity.py +1742 -0
- spisea-3.1.0/spisea/merge_models.py +2526 -0
- spisea-3.1.0/spisea/reddening.py +2496 -0
- spisea-3.1.0/spisea/synthetic.py +2489 -0
- spisea-3.1.0/spisea/tests/__init__.py +4 -0
- spisea-3.1.0/spisea/tests/test_atmospheres.py +273 -0
- spisea-3.1.0/spisea/tests/test_atmospheres_grid_timing.py +62 -0
- spisea-3.1.0/spisea/tests/test_data/companions.fits +0 -0
- spisea-3.1.0/spisea/tests/test_data/star_systems.fits +0 -0
- spisea-3.1.0/spisea/tests/test_exceptions.py +37 -0
- spisea-3.1.0/spisea/tests/test_imf.py +547 -0
- spisea-3.1.0/spisea/tests/test_models.py +392 -0
- spisea-3.1.0/spisea/tests/test_multiplicity.py +764 -0
- spisea-3.1.0/spisea/tests/test_reddening.py +297 -0
- spisea-3.1.0/spisea/tests/test_synthetic.py +1970 -0
- spisea-3.1.0/spisea/utils/__init__.py +4 -0
- spisea-3.1.0/spisea/utils/objects.py +9 -0
- spisea-3.1.0/spisea/utils/synphot_bridge.py +199 -0
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Use the spisea-synphot conda environment for all Python, pip, and tests
|
|
3
|
+
alwaysApply: true
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Conda environment: `spisea-synphot`
|
|
7
|
+
|
|
8
|
+
For this repository, use the **`spisea-synphot`** conda environment for every shell command that needs Python, `pip`, `pytest`, or project tooling.
|
|
9
|
+
|
|
10
|
+
- Prefer: `conda run -n spisea-synphot <command>` (e.g. `conda run -n spisea-synphot python -m pytest ...`) so the correct interpreter is used even in non-interactive shells.
|
|
11
|
+
- Alternatively: `source "$(conda info --base)/etc/profile.d/conda.sh" && conda activate spisea-synphot` then run commands as usual.
|
|
12
|
+
- Do not assume `python` or `pip` on `PATH` without activating that environment; do not use other envs (e.g. a generic `astro` env) for SPISEA work unless the user says otherwise.
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
name: CI
|
|
2
|
+
|
|
3
|
+
# DISABLED: GitHub-hosted runners do not have the SPISEA model grids.
|
|
4
|
+
# Importing SPISEA builds a default MISTv1() model and the fast tests
|
|
5
|
+
# fail at collection with "Missing MISTv1/v1.2-synthpop/". To re-enable,
|
|
6
|
+
# restore the pull_request and push triggers and the "fast" job below,
|
|
7
|
+
# and run it where SPISEA_MODELS is available.
|
|
8
|
+
|
|
9
|
+
on:
|
|
10
|
+
workflow_dispatch:
|
|
11
|
+
# pull_request:
|
|
12
|
+
# push:
|
|
13
|
+
# branches: [dev, main]
|
|
14
|
+
|
|
15
|
+
permissions:
|
|
16
|
+
contents: read
|
|
17
|
+
|
|
18
|
+
jobs:
|
|
19
|
+
disabled:
|
|
20
|
+
name: CI disabled
|
|
21
|
+
runs-on: ubuntu-latest
|
|
22
|
+
steps:
|
|
23
|
+
- run: echo "CI is disabled; see .github/workflows/ci.yml."
|
|
24
|
+
|
|
25
|
+
# fast:
|
|
26
|
+
# name: Fast tests
|
|
27
|
+
# runs-on: ubuntu-latest
|
|
28
|
+
# steps:
|
|
29
|
+
# - uses: actions/checkout@v4
|
|
30
|
+
#
|
|
31
|
+
# - uses: actions/setup-python@v5
|
|
32
|
+
# with:
|
|
33
|
+
# python-version: "3.11"
|
|
34
|
+
# cache: pip
|
|
35
|
+
#
|
|
36
|
+
# - name: Install SPISEA
|
|
37
|
+
# run: pip install -e ".[dev]"
|
|
38
|
+
#
|
|
39
|
+
# - name: Run fast tests
|
|
40
|
+
# env:
|
|
41
|
+
# MPLBACKEND: Agg
|
|
42
|
+
# run: pytest spisea/tests -m "not slow" --tb=short
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
name: Nightly
|
|
2
|
+
|
|
3
|
+
# DISABLED: GitHub-hosted runners do not have the PYSYN_CDBS and
|
|
4
|
+
# SPISEA_MODELS trees (CDBS + evolution/atmosphere grids, ~20 GB) that the
|
|
5
|
+
# full suite needs. To re-enable, restore the schedule trigger and the
|
|
6
|
+
# "full" job below, and run it on a self-hosted runner that already has
|
|
7
|
+
# the grids (or download them before the tests).
|
|
8
|
+
#
|
|
9
|
+
# Full suite, including @pytest.mark.slow isochrone/cluster tests.
|
|
10
|
+
|
|
11
|
+
on:
|
|
12
|
+
workflow_dispatch:
|
|
13
|
+
# schedule:
|
|
14
|
+
# - cron: "0 8 * * *"
|
|
15
|
+
|
|
16
|
+
permissions:
|
|
17
|
+
contents: read
|
|
18
|
+
|
|
19
|
+
jobs:
|
|
20
|
+
disabled:
|
|
21
|
+
name: Nightly disabled
|
|
22
|
+
runs-on: ubuntu-latest
|
|
23
|
+
steps:
|
|
24
|
+
- run: echo "Nightly full suite is disabled; see .github/workflows/nightly.yml."
|
|
25
|
+
|
|
26
|
+
# full:
|
|
27
|
+
# name: Full tests
|
|
28
|
+
# runs-on: ubuntu-latest
|
|
29
|
+
# env:
|
|
30
|
+
# MPLBACKEND: Agg
|
|
31
|
+
# PYSYN_CDBS: ${{ vars.PYSYN_CDBS }}
|
|
32
|
+
# SPISEA_MODELS: ${{ vars.SPISEA_MODELS }}
|
|
33
|
+
# steps:
|
|
34
|
+
# - uses: actions/checkout@v4
|
|
35
|
+
#
|
|
36
|
+
# - uses: actions/setup-python@v5
|
|
37
|
+
# with:
|
|
38
|
+
# python-version: "3.11"
|
|
39
|
+
# cache: pip
|
|
40
|
+
#
|
|
41
|
+
# - name: Require model trees
|
|
42
|
+
# run: |
|
|
43
|
+
# if [ -z "${PYSYN_CDBS}" ] || [ -z "${SPISEA_MODELS}" ]; then
|
|
44
|
+
# echo "Set repository variables PYSYN_CDBS and SPISEA_MODELS"
|
|
45
|
+
# echo "to the CDBS and SPISEA model directories on the runner."
|
|
46
|
+
# exit 1
|
|
47
|
+
# fi
|
|
48
|
+
# if [ ! -d "${PYSYN_CDBS}" ] || [ ! -d "${SPISEA_MODELS}" ]; then
|
|
49
|
+
# echo "Model directories are missing:"
|
|
50
|
+
# echo " PYSYN_CDBS=${PYSYN_CDBS}"
|
|
51
|
+
# echo " SPISEA_MODELS=${SPISEA_MODELS}"
|
|
52
|
+
# exit 1
|
|
53
|
+
# fi
|
|
54
|
+
#
|
|
55
|
+
# - name: Install SPISEA
|
|
56
|
+
# run: pip install -e ".[dev]"
|
|
57
|
+
#
|
|
58
|
+
# - name: Run all tests
|
|
59
|
+
# run: pytest spisea/tests --tb=short
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
name: Publish to PyPI
|
|
2
|
+
|
|
3
|
+
# Builds the sdist and wheel and uploads them to PyPI when a GitHub release
|
|
4
|
+
# is published. Uses PyPI trusted publishing, so no API token is stored here.
|
|
5
|
+
# One-time setup on PyPI (by a maintainer): add a trusted publisher for
|
|
6
|
+
# project SPISEA with owner MovingUniverseLab, repository SPISEA, workflow
|
|
7
|
+
# publish.yml, and environment pypi.
|
|
8
|
+
|
|
9
|
+
on:
|
|
10
|
+
release:
|
|
11
|
+
types: [published]
|
|
12
|
+
workflow_dispatch:
|
|
13
|
+
|
|
14
|
+
permissions:
|
|
15
|
+
contents: read
|
|
16
|
+
|
|
17
|
+
jobs:
|
|
18
|
+
build:
|
|
19
|
+
name: Build distributions
|
|
20
|
+
runs-on: ubuntu-latest
|
|
21
|
+
steps:
|
|
22
|
+
- uses: actions/checkout@v4
|
|
23
|
+
|
|
24
|
+
- uses: actions/setup-python@v5
|
|
25
|
+
with:
|
|
26
|
+
python-version: "3.12"
|
|
27
|
+
|
|
28
|
+
- name: Build sdist and wheel
|
|
29
|
+
run: |
|
|
30
|
+
python -m pip install build twine
|
|
31
|
+
python -m build
|
|
32
|
+
python -m twine check dist/*
|
|
33
|
+
|
|
34
|
+
- uses: actions/upload-artifact@v4
|
|
35
|
+
with:
|
|
36
|
+
name: dist
|
|
37
|
+
path: dist/
|
|
38
|
+
|
|
39
|
+
publish:
|
|
40
|
+
name: Upload to PyPI
|
|
41
|
+
needs: build
|
|
42
|
+
if: github.event_name == 'release'
|
|
43
|
+
runs-on: ubuntu-latest
|
|
44
|
+
environment:
|
|
45
|
+
name: pypi
|
|
46
|
+
url: https://pypi.org/project/SPISEA/
|
|
47
|
+
permissions:
|
|
48
|
+
id-token: write
|
|
49
|
+
steps:
|
|
50
|
+
- uses: actions/download-artifact@v4
|
|
51
|
+
with:
|
|
52
|
+
name: dist
|
|
53
|
+
path: dist/
|
|
54
|
+
|
|
55
|
+
- uses: pypa/gh-action-pypi-publish@release/v1
|
spisea-3.1.0/.gitignore
ADDED
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
# SPISEA-generated isochrones from test functions
|
|
2
|
+
isochrones/
|
|
3
|
+
spisea/tests/isochrones/
|
|
4
|
+
|
|
5
|
+
# Isochrone and atmosphere tables written by the documentation notebooks
|
|
6
|
+
docs/notebooks/_output/
|
|
7
|
+
iso_mist/
|
|
8
|
+
iso_mist_r1/
|
|
9
|
+
iso_mist_r2/
|
|
10
|
+
iso_mist_r3/
|
|
11
|
+
iso_merged/
|
|
12
|
+
iso_merged_r1/
|
|
13
|
+
iso_parsec_r1/
|
|
14
|
+
atm_cosmic/
|
|
15
|
+
|
|
16
|
+
# Local helper scripts (kept on disk, not in the repo)
|
|
17
|
+
scripts/
|
|
18
|
+
|
|
19
|
+
# Compiled files
|
|
20
|
+
*.py[co]
|
|
21
|
+
*.a
|
|
22
|
+
*.o
|
|
23
|
+
*.so
|
|
24
|
+
*.ipynb_checkpoints
|
|
25
|
+
__pycache__
|
|
26
|
+
|
|
27
|
+
# Ignore .c files by default to avoid including generated code. If you want to
|
|
28
|
+
# add a non-generated .c extension, use `git add -f filename.c`.
|
|
29
|
+
*.c
|
|
30
|
+
|
|
31
|
+
# Other generated files
|
|
32
|
+
*/version.py
|
|
33
|
+
*/cython_version.py
|
|
34
|
+
htmlcov
|
|
35
|
+
.coverage
|
|
36
|
+
MANIFEST
|
|
37
|
+
|
|
38
|
+
# Sphinx
|
|
39
|
+
docs/api
|
|
40
|
+
docs/_build
|
|
41
|
+
docs/_static/*
|
|
42
|
+
!docs/_static/custom.css
|
|
43
|
+
docs/_template
|
|
44
|
+
|
|
45
|
+
# Eclipse editor project files
|
|
46
|
+
.project
|
|
47
|
+
.pydevproject
|
|
48
|
+
.settings
|
|
49
|
+
|
|
50
|
+
# Pycharm editor project files
|
|
51
|
+
.idea
|
|
52
|
+
|
|
53
|
+
# Packages/installer info
|
|
54
|
+
*.egg
|
|
55
|
+
*.egg-info
|
|
56
|
+
dist
|
|
57
|
+
build
|
|
58
|
+
eggs
|
|
59
|
+
parts
|
|
60
|
+
bin
|
|
61
|
+
var
|
|
62
|
+
sdist
|
|
63
|
+
develop-eggs
|
|
64
|
+
.installed.cfg
|
|
65
|
+
distribute-*.tar.gz
|
|
66
|
+
|
|
67
|
+
# Other
|
|
68
|
+
.*.swp
|
|
69
|
+
*~
|
|
70
|
+
|
|
71
|
+
# OS Generated Files
|
|
72
|
+
.DS_Store
|
|
73
|
+
._*
|
|
74
|
+
|
|
75
|
+
# Test files generated
|
|
76
|
+
spisea/tests/isochrones
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
# .readthedocs.yml
|
|
2
|
+
# Read the Docs configuration file
|
|
3
|
+
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details
|
|
4
|
+
|
|
5
|
+
# Required
|
|
6
|
+
version: 2
|
|
7
|
+
|
|
8
|
+
# Build conda environment
|
|
9
|
+
#conda:
|
|
10
|
+
# environment: .environment.yml
|
|
11
|
+
|
|
12
|
+
# Set the version of Python and other tools you might need
|
|
13
|
+
build:
|
|
14
|
+
os: ubuntu-22.04
|
|
15
|
+
tools:
|
|
16
|
+
# stsynphot (docs/requirements.txt) requires Python >= 3.11.
|
|
17
|
+
python: "3.11"
|
|
18
|
+
# nbsphinx parses stored notebooks with pandoc. It does not execute them.
|
|
19
|
+
apt_packages:
|
|
20
|
+
- pandoc
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
# Build documentation in the docs/ directory with Sphinx
|
|
24
|
+
sphinx:
|
|
25
|
+
configuration: docs/conf.py
|
|
26
|
+
|
|
27
|
+
# Optionally build your docs in additional formats such as PDF and ePub
|
|
28
|
+
formats: all
|
|
29
|
+
|
|
30
|
+
# Set the requirements required to build your docs
|
|
31
|
+
python:
|
|
32
|
+
install:
|
|
33
|
+
- requirements: docs/requirements.txt
|
|
34
|
+
|
spisea-3.1.0/.travis.yml
ADDED
|
@@ -0,0 +1,171 @@
|
|
|
1
|
+
language: python
|
|
2
|
+
|
|
3
|
+
# We need a full clone to make sure setuptools_scm works properly
|
|
4
|
+
git:
|
|
5
|
+
depth: false
|
|
6
|
+
|
|
7
|
+
os:
|
|
8
|
+
- linux
|
|
9
|
+
|
|
10
|
+
# The apt packages below are needed for sphinx builds. A full list of packages
|
|
11
|
+
# that can be included can be found here:
|
|
12
|
+
#
|
|
13
|
+
# https://github.com/travis-ci/apt-package-whitelist/blob/master/ubuntu-precise
|
|
14
|
+
|
|
15
|
+
addons:
|
|
16
|
+
apt:
|
|
17
|
+
packages:
|
|
18
|
+
- graphviz
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
stages:
|
|
22
|
+
# Do the style check and a single test job, don't proceed if it fails
|
|
23
|
+
- name: Initial tests
|
|
24
|
+
# Test docs, astropy dev, and without optional dependencies
|
|
25
|
+
- name: Comprehensive tests
|
|
26
|
+
# These will only run when cron is opted in
|
|
27
|
+
- name: Cron tests
|
|
28
|
+
if: type = cron
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
env:
|
|
32
|
+
global:
|
|
33
|
+
|
|
34
|
+
# The following versions are the 'default' for tests, unless
|
|
35
|
+
# overridden underneath. They are defined here in order to save having
|
|
36
|
+
# to repeat them for all configurations.
|
|
37
|
+
|
|
38
|
+
# The following three variables are for tox. TOXENV is a standard
|
|
39
|
+
# variable that tox uses to determine the environment to run,
|
|
40
|
+
# TOXARGS are arguments passed to tox, and TOXPOSARGS are arguments
|
|
41
|
+
# that tox passes through to the {posargs} indicator in tox.ini.
|
|
42
|
+
# The latter can be used for example to pass arguments to pytest.
|
|
43
|
+
- TOXENV='test'
|
|
44
|
+
- TOXARGS='-v'
|
|
45
|
+
- TOXPOSARGS=''
|
|
46
|
+
|
|
47
|
+
# The following is needed to avoid issues if e.g. Matplotlib tries
|
|
48
|
+
# to open a GUI window.
|
|
49
|
+
- SETUP_XVFB=True
|
|
50
|
+
|
|
51
|
+
matrix:
|
|
52
|
+
|
|
53
|
+
# Don't wait for allowed failures
|
|
54
|
+
fast_finish: true
|
|
55
|
+
|
|
56
|
+
include:
|
|
57
|
+
|
|
58
|
+
# Try MacOS X, usually enough only to run from cron as hardly there are
|
|
59
|
+
# issues that are not picked up by a linux worker. We set language to
|
|
60
|
+
# 'c' since 'python' doesn't work on non-Linux platforms.
|
|
61
|
+
- os: osx
|
|
62
|
+
language: c
|
|
63
|
+
name: Python 3.7 with required dependencies
|
|
64
|
+
stage: Cron tests
|
|
65
|
+
env: PYTHON_VERSION=3.7 TOXENV=py37-test
|
|
66
|
+
|
|
67
|
+
# Do a regular build on Linux with Python 3.8, with cov
|
|
68
|
+
# For Linux we use language: python to avoid using conda.
|
|
69
|
+
- os: linux
|
|
70
|
+
python: 3.8
|
|
71
|
+
name: Python 3.8 with required dependencies and measure coverage
|
|
72
|
+
stage: Initial tests
|
|
73
|
+
env: TOXENV=py38-test-cov
|
|
74
|
+
|
|
75
|
+
# Check for sphinx doc build warnings
|
|
76
|
+
- os: linux
|
|
77
|
+
python: 3.8
|
|
78
|
+
name: Documentation build
|
|
79
|
+
stage: Comprehensive tests
|
|
80
|
+
env: TOXENV=build_docs
|
|
81
|
+
|
|
82
|
+
# Now try Astropy dev with the latest Python
|
|
83
|
+
- os: linux
|
|
84
|
+
python: 3.8
|
|
85
|
+
name: Python 3.8 with developer version of astropy
|
|
86
|
+
stage: Comprehensive tests
|
|
87
|
+
env: TOXENV=py38-test-devdeps
|
|
88
|
+
|
|
89
|
+
# And with an older Python, Astropy LTS, and the oldest supported Numpy
|
|
90
|
+
- os: linux
|
|
91
|
+
python: 3.6
|
|
92
|
+
name: Python 3.6 astropy LTS and Numpy 1.16
|
|
93
|
+
stage: Comprehensive tests
|
|
94
|
+
env: TOXENV=py36-test-astropylts-numpy116
|
|
95
|
+
|
|
96
|
+
# Add a job that runs from cron only and tests against astropy dev and
|
|
97
|
+
# numpy dev to give a change for early discovery of issues and feedback
|
|
98
|
+
# for both developer teams.
|
|
99
|
+
- os: linux
|
|
100
|
+
python: 3.8
|
|
101
|
+
name: Python 3.8 latest developer version of key dependencies
|
|
102
|
+
stage: Cron tests
|
|
103
|
+
env: TOXENV=py38-test-devdeps
|
|
104
|
+
|
|
105
|
+
# Try on Windows.
|
|
106
|
+
- os: windows
|
|
107
|
+
language: c
|
|
108
|
+
name: Python 3.8 with required dependencies
|
|
109
|
+
stage: Comprehensive tests
|
|
110
|
+
env: PYTHON_VERSION=3.8 TOXENV=py38-test
|
|
111
|
+
|
|
112
|
+
# Try other python versions and Numpy versions. Since we can assume that
|
|
113
|
+
# the Numpy developers have taken care of testing Numpy with different
|
|
114
|
+
# versions of Python, we can vary Python and Numpy versions at the same
|
|
115
|
+
# time.
|
|
116
|
+
|
|
117
|
+
- os: linux
|
|
118
|
+
python: 3.7
|
|
119
|
+
name: Python 3.7 with astropy 3.0 and Numpy 1.17
|
|
120
|
+
stage: Comprehensive tests
|
|
121
|
+
env: TOXENV=py37-test-astropy30-numpy117
|
|
122
|
+
|
|
123
|
+
# Do a code style check
|
|
124
|
+
- os: linux
|
|
125
|
+
python: 3.8
|
|
126
|
+
name: Code style checks
|
|
127
|
+
stage: Initial tests
|
|
128
|
+
env: TOXENV=codestyle
|
|
129
|
+
|
|
130
|
+
allow_failures:
|
|
131
|
+
# Do a PEP8 test with flake8
|
|
132
|
+
# (do allow to fail unless your code completely compliant)
|
|
133
|
+
# - os: linux
|
|
134
|
+
# python: 3.8
|
|
135
|
+
# name: Code style checks
|
|
136
|
+
# stage: Initial tests
|
|
137
|
+
# env: TOXENV=codestyle
|
|
138
|
+
|
|
139
|
+
before_install:
|
|
140
|
+
# Create a coverage.xml for use by coveralls or codecov
|
|
141
|
+
- if [[ $TOXENV == *-cov ]]; then
|
|
142
|
+
export TOXPOSARGS=$TOXPOSARGS" --cov-report=xml:"$TRAVIS_BUILD_DIR"/coverage.xml";
|
|
143
|
+
fi
|
|
144
|
+
|
|
145
|
+
install:
|
|
146
|
+
|
|
147
|
+
# We now use the ci-helpers package to set up our Python environment
|
|
148
|
+
# on Windows and MacOS X but we don't set up any other dependencies,
|
|
149
|
+
# instead using tox to do this. See https://github.com/astropy/ci-helpers
|
|
150
|
+
# for more information about ci-helpers.
|
|
151
|
+
|
|
152
|
+
- if [[ $TRAVIS_OS_NAME != linux ]]; then
|
|
153
|
+
git clone --depth 1 git://github.com/astropy/ci-helpers.git;
|
|
154
|
+
source ci-helpers/travis/setup_conda.sh;
|
|
155
|
+
fi
|
|
156
|
+
|
|
157
|
+
script:
|
|
158
|
+
- pip install tox
|
|
159
|
+
- tox $TOXARGS -- $TOXPOSARGS
|
|
160
|
+
|
|
161
|
+
after_success:
|
|
162
|
+
# if either coveralls or codecov is used, uncomment the if and fi statements
|
|
163
|
+
# and the appropriate two lines inside the if statement
|
|
164
|
+
# - if [[ $TOXENV == *-cov ]]; then
|
|
165
|
+
# # If coveralls.io is set up for this package, uncomment the two lines below.
|
|
166
|
+
# pip install coveralls;
|
|
167
|
+
# coveralls;
|
|
168
|
+
# # If codecov is set up for this package, uncomment the two lines below
|
|
169
|
+
# pip install codecov;
|
|
170
|
+
# codecov;
|
|
171
|
+
# fi
|
spisea-3.1.0/Dockerfile
ADDED
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
FROM python:3.14
|
|
2
|
+
|
|
3
|
+
ENV DEBIAN_FRONTEND=noninteractive
|
|
4
|
+
|
|
5
|
+
RUN apt-get update \
|
|
6
|
+
&& apt-get install -y --no-install-recommends git wget \
|
|
7
|
+
&& apt-get clean \
|
|
8
|
+
&& rm -rf /var/lib/apt/lists/*
|
|
9
|
+
|
|
10
|
+
# Version floors match pyproject.toml.
|
|
11
|
+
RUN pip install --no-cache-dir \
|
|
12
|
+
"numpy>=2" "scipy>=1.14" matplotlib pandas "astropy>=7" \
|
|
13
|
+
"synphot>=1.9" "stsynphot>=1.7"
|
|
14
|
+
|
|
15
|
+
RUN git clone https://github.com/MovingUniverseLab/spisea.git /SPISEA
|
|
16
|
+
|
|
17
|
+
ENV PYTHONPATH=/SPISEA
|
|
18
|
+
|
|
19
|
+
# Add data to cdbs folder
|
|
20
|
+
RUN mkdir /cdbs
|
|
21
|
+
WORKDIR /cdbs
|
|
22
|
+
RUN wget https://archive.stsci.edu/hlsps/reference-atlases/hlsp_reference-atlases_hst_multi_everything_multi_v10_sed.tar
|
|
23
|
+
RUN wget https://archive.stsci.edu/hlsps/reference-atlases/hlsp_reference-atlases_hst_multi_star-galaxy-models_multi_v3_synphot2.tar
|
|
24
|
+
RUN tar -xvf hlsp_reference-atlases_hst_multi_everything_multi_v10_sed.tar && rm hlsp_reference-atlases_hst_multi_everything_multi_v10_sed.tar
|
|
25
|
+
RUN tar -xvf hlsp_reference-atlases_hst_multi_star-galaxy-models_multi_v3_synphot2.tar && rm hlsp_reference-atlases_hst_multi_star-galaxy-models_multi_v3_synphot2.tar
|
|
26
|
+
|
|
27
|
+
# Move data folders to cdbs
|
|
28
|
+
RUN mv /cdbs/grp/redcat/trds/comp /cdbs
|
|
29
|
+
RUN mv /cdbs/grp/redcat/trds/mtab /cdbs
|
|
30
|
+
RUN mv /cdbs/grp/redcat/trds/grid /cdbs
|
|
31
|
+
|
|
32
|
+
RUN mkdir /cdbs/models
|
|
33
|
+
WORKDIR /cdbs/models
|
|
34
|
+
RUN wget http://astro.berkeley.edu/~jlu/spisea/spisea_models.tar.gz && wget http://astro.berkeley.edu/~jlu/spisea/spisea_cdbs.tar.gz
|
|
35
|
+
RUN tar -xvf spisea_cdbs.tar.gz && tar -xvf spisea_models.tar.gz && rm spisea_cdbs.tar.gz && rm spisea_models.tar.gz
|
|
36
|
+
|
|
37
|
+
# stsynphot reads throughput/model grids from this path (same convention as legacy pysynphot).
|
|
38
|
+
ENV PYSYN_CDBS=/cdbs/models/cdbs/
|
|
39
|
+
ENV SPISEA_MODELS=/cdbs/models
|