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.
Files changed (305) hide show
  1. spisea-3.1.0/.cursor/rules/spisea-synphot-conda.mdc +12 -0
  2. spisea-3.1.0/.github/workflows/ci.yml +42 -0
  3. spisea-3.1.0/.github/workflows/nightly.yml +59 -0
  4. spisea-3.1.0/.github/workflows/publish.yml +55 -0
  5. spisea-3.1.0/.gitignore +76 -0
  6. spisea-3.1.0/.readthedocs.yml +34 -0
  7. spisea-3.1.0/.travis.yml +171 -0
  8. spisea-3.1.0/Dockerfile +39 -0
  9. spisea-3.1.0/LICENSE.txt +674 -0
  10. spisea-3.1.0/PKG-INFO +115 -0
  11. spisea-3.1.0/README.md +76 -0
  12. spisea-3.1.0/SPISEA.egg-info/PKG-INFO +115 -0
  13. spisea-3.1.0/SPISEA.egg-info/SOURCES.txt +303 -0
  14. spisea-3.1.0/SPISEA.egg-info/dependency_links.txt +1 -0
  15. spisea-3.1.0/SPISEA.egg-info/requires.txt +20 -0
  16. spisea-3.1.0/SPISEA.egg-info/top_level.txt +1 -0
  17. spisea-3.1.0/SPISEA_logo_final.png +0 -0
  18. spisea-3.1.0/data/grid/k93models/catalog.fits +1 -0
  19. spisea-3.1.0/data/grid/k93models/km05/km05_9500.fits +102 -0
  20. spisea-3.1.0/data/grid/k93models/km05/km05_9750.fits +113 -0
  21. spisea-3.1.0/docs/Makefile +133 -0
  22. spisea-3.1.0/docs/Quick_Start_Make_Cluster_w_BDs.ipynb +2320 -0
  23. spisea-3.1.0/docs/_static/custom.css +7 -0
  24. spisea-3.1.0/docs/_templates/version-badge.html +2 -0
  25. spisea-3.1.0/docs/add_atmo_models.rst +41 -0
  26. spisea-3.1.0/docs/add_evo_models.rst +118 -0
  27. spisea-3.1.0/docs/add_filters.rst +22 -0
  28. spisea-3.1.0/docs/api.rst +123 -0
  29. spisea-3.1.0/docs/atmo_models.rst +362 -0
  30. spisea-3.1.0/docs/conf.py +204 -0
  31. spisea-3.1.0/docs/contributors.rst +52 -0
  32. spisea-3.1.0/docs/development.rst +26 -0
  33. spisea-3.1.0/docs/evo_models.rst +215 -0
  34. spisea-3.1.0/docs/extinction.rst +104 -0
  35. spisea-3.1.0/docs/figures/_offner_vs_spisea25.py +136 -0
  36. spisea-3.1.0/docs/figures/csf_offner_vs_spisea2.5.png +0 -0
  37. spisea-3.1.0/docs/figures/imf_sampling_flow.svg +37 -0
  38. spisea-3.1.0/docs/figures/meanq_offner_vs_spisea2.5.png +0 -0
  39. spisea-3.1.0/docs/figures/mf_offner_vs_spisea2.5.png +0 -0
  40. spisea-3.1.0/docs/figures/plot_csf_offner_vs_spisea2.5.py +119 -0
  41. spisea-3.1.0/docs/figures/plot_meanq_offner_vs_spisea2.5.py +68 -0
  42. spisea-3.1.0/docs/figures/plot_mf_offner_vs_spisea2.5.py +136 -0
  43. spisea-3.1.0/docs/figures/plot_q_offner_vs_spisea2.5.py +72 -0
  44. spisea-3.1.0/docs/figures/plot_q_sep_offner_vs_spisea2.5.py +35 -0
  45. spisea-3.1.0/docs/figures/plot_sep_offner_vs_spisea2.5.py +77 -0
  46. spisea-3.1.0/docs/figures/plot_sig_loga_offner_vs_spisea2.5.py +71 -0
  47. spisea-3.1.0/docs/figures/plot_wd_koester_blackbody.py +513 -0
  48. spisea-3.1.0/docs/figures/q_offner_vs_spisea2.5.png +0 -0
  49. spisea-3.1.0/docs/figures/sep_offner_vs_spisea2.5.png +0 -0
  50. spisea-3.1.0/docs/figures/sig_loga_offner_vs_spisea2.5.png +0 -0
  51. spisea-3.1.0/docs/figures/wd_koester_bb_join.png +0 -0
  52. spisea-3.1.0/docs/figures/wd_koester_bb_sed.png +0 -0
  53. spisea-3.1.0/docs/filters.rst +369 -0
  54. spisea-3.1.0/docs/for_model_fileserver/index.html +389 -0
  55. spisea-3.1.0/docs/getting_started.rst +354 -0
  56. spisea-3.1.0/docs/ifmr.rst +45 -0
  57. spisea-3.1.0/docs/images/WRstars_example.png +0 -0
  58. spisea-3.1.0/docs/images/atm_models.png +0 -0
  59. spisea-3.1.0/docs/images/clust_unresolved_example.png +0 -0
  60. spisea-3.1.0/docs/images/cluster_cmd_example.png +0 -0
  61. spisea-3.1.0/docs/images/cluster_table.png +0 -0
  62. spisea-3.1.0/docs/images/cmd_example.png +0 -0
  63. spisea-3.1.0/docs/images/compact_remnants_example.png +0 -0
  64. spisea-3.1.0/docs/images/evo_models_f2.png +0 -0
  65. spisea-3.1.0/docs/images/imf_comp_example.png +0 -0
  66. spisea-3.1.0/docs/images/iso_cmd_example.png +0 -0
  67. spisea-3.1.0/docs/images/iso_comp_example.pdf +0 -0
  68. spisea-3.1.0/docs/images/iso_comp_example.png +0 -0
  69. spisea-3.1.0/docs/images/isochrone_table.png +0 -0
  70. spisea-3.1.0/docs/images/logo.pdf +0 -0
  71. spisea-3.1.0/docs/images/logo.png +0 -0
  72. spisea-3.1.0/docs/images/simulated_cluster_example.png +0 -0
  73. spisea-3.1.0/docs/imf.rst +164 -0
  74. spisea-3.1.0/docs/index.rst +267 -0
  75. spisea-3.1.0/docs/joss_paper/paper.md +86 -0
  76. spisea-3.1.0/docs/joss_paper/references.bib +217 -0
  77. spisea-3.1.0/docs/make.bat +172 -0
  78. spisea-3.1.0/docs/make_cluster.rst +107 -0
  79. spisea-3.1.0/docs/make_isochrone.rst +142 -0
  80. spisea-3.1.0/docs/more_examples.rst +69 -0
  81. spisea-3.1.0/docs/multiplicity.rst +159 -0
  82. spisea-3.1.0/docs/notebooks/01_make_cluster.ipynb +813 -0
  83. spisea-3.1.0/docs/notebooks/02_brown_dwarfs.ipynb +354 -0
  84. spisea-3.1.0/docs/notebooks/03_resolved_multiples.ipynb +244 -0
  85. spisea-3.1.0/docs/notebooks/04_cluster_with_cosmic.ipynb +1544 -0
  86. spisea-3.1.0/docs/notebooks/papers/begbie2026/README +3 -0
  87. spisea-3.1.0/docs/notebooks/papers/begbie2026/cluster_data/13386c89-f30e-11f0-a3b5-bc97e148b76b-O-result.fits +466 -0
  88. spisea-3.1.0/docs/notebooks/papers/begbie2026/cluster_data/9b2caaac-f8ae-11f0-9655-bc97e148b76b-O-result.fits +503 -0
  89. spisea-3.1.0/docs/notebooks/papers/begbie2026/cluster_data/apj491325t1_mrt.txt +1086 -0
  90. spisea-3.1.0/docs/notebooks/papers/begbie2026/cluster_data/asu (2).fit +2694 -0
  91. spisea-3.1.0/docs/notebooks/papers/begbie2026/cluster_data/asu (3).fit +174 -0
  92. spisea-3.1.0/docs/notebooks/papers/begbie2026/cluster_data/asu.fit +2694 -0
  93. spisea-3.1.0/docs/notebooks/papers/begbie2026/fig02_bd_imfs.ipynb +115 -0
  94. spisea-3.1.0/docs/notebooks/papers/begbie2026/fig03_atmosphere_interpolation.ipynb +173 -0
  95. spisea-3.1.0/docs/notebooks/papers/begbie2026/fig04_evolution_interpolation.ipynb +213 -0
  96. spisea-3.1.0/docs/notebooks/papers/begbie2026/fig05_hrd_ages.ipynb +201 -0
  97. spisea-3.1.0/docs/notebooks/papers/begbie2026/fig06_pleiades_gaia.ipynb +373 -0
  98. spisea-3.1.0/docs/notebooks/papers/begbie2026/fig07_pleiades_ukidss.ipynb +347 -0
  99. spisea-3.1.0/docs/notebooks/papers/begbie2026/fig08_upper_sco.ipynb +377 -0
  100. spisea-3.1.0/docs/notebooks/papers/begbie2026/fig09_m44.ipynb +298 -0
  101. spisea-3.1.0/docs/notebooks/papers/begbie2026/fig10_mass_fraction.ipynb +106 -0
  102. spisea-3.1.0/docs/notebooks/papers/begbie2026/fig11_companion_counts.ipynb +122 -0
  103. spisea-3.1.0/docs/notebooks/papers/begbie2026/fig12_bd_separations.ipynb +103 -0
  104. spisea-3.1.0/docs/notebooks/papers/hosek2020/README +3 -0
  105. spisea-3.1.0/docs/notebooks/papers/hosek2020/fig02_hrd_extinction.ipynb +203 -0
  106. spisea-3.1.0/docs/notebooks/papers/hosek2020/fig03_cmds_metallicity.ipynb +236 -0
  107. spisea-3.1.0/docs/notebooks/papers/hosek2020/fig04_multiplicity_extinction.ipynb +365 -0
  108. spisea-3.1.0/docs/notebooks/papers/hosek2020/fig05_imfs.ipynb +205 -0
  109. spisea-3.1.0/docs/notebooks/papers/hosek2020/fig06_wolf_rayet.ipynb +18832 -0
  110. spisea-3.1.0/docs/notebooks/papers/hosek2020/fig07_unresolved_spectra.ipynb +232 -0
  111. spisea-3.1.0/docs/paper_examples_begbie2026.rst +31 -0
  112. spisea-3.1.0/docs/paper_examples_hosek2020.rst +25 -0
  113. spisea-3.1.0/docs/quick_start.rst +102 -0
  114. spisea-3.1.0/docs/release_runbook_v3.1.md +217 -0
  115. spisea-3.1.0/docs/requirements.txt +15 -0
  116. spisea-3.1.0/docs/version_switch.rst +56 -0
  117. spisea-3.1.0/pyproject.toml +123 -0
  118. spisea-3.1.0/setup.cfg +4 -0
  119. spisea-3.1.0/spisea/__init__.py +7 -0
  120. spisea-3.1.0/spisea/atmospheres.py +3721 -0
  121. spisea-3.1.0/spisea/data/README.rst +6 -0
  122. spisea-3.1.0/spisea/el_files/fritz11_EL_table2.txt +22 -0
  123. spisea-3.1.0/spisea/el_files/fritz11_EL_table8.fits +0 -0
  124. spisea-3.1.0/spisea/evolution.py +2660 -0
  125. spisea-3.1.0/spisea/exceptions.py +24 -0
  126. spisea-3.1.0/spisea/extern/__init__.py +7 -0
  127. spisea-3.1.0/spisea/filt_func/2mass/H.dat +58 -0
  128. spisea-3.1.0/spisea/filt_func/2mass/J.dat +107 -0
  129. spisea-3.1.0/spisea/filt_func/2mass/Ks.dat +76 -0
  130. spisea-3.1.0/spisea/filt_func/CTIO_OSIRIS/H.txt +700 -0
  131. spisea-3.1.0/spisea/filt_func/CTIO_OSIRIS/K.txt +814 -0
  132. spisea-3.1.0/spisea/filt_func/Johnson_Glass/#H.txt# +25 -0
  133. spisea-3.1.0/spisea/filt_func/Johnson_Glass/H.txt +29 -0
  134. spisea-3.1.0/spisea/filt_func/Johnson_Glass/J.txt +21 -0
  135. spisea-3.1.0/spisea/filt_func/Johnson_Glass/K.txt +25 -0
  136. spisea-3.1.0/spisea/filt_func/Johnson_Glass/README.txt +1 -0
  137. spisea-3.1.0/spisea/filt_func/Johnson_Glass/iso_6.70_0.00_01000.fits +34 -0
  138. spisea-3.1.0/spisea/filt_func/bessell/B.dat +21 -0
  139. spisea-3.1.0/spisea/filt_func/bessell/I.dat +23 -0
  140. spisea-3.1.0/spisea/filt_func/bessell/R.dat +24 -0
  141. spisea-3.1.0/spisea/filt_func/bessell/README.txt +4 -0
  142. spisea-3.1.0/spisea/filt_func/bessell/U.dat +25 -0
  143. spisea-3.1.0/spisea/filt_func/bessell/V.dat +24 -0
  144. spisea-3.1.0/spisea/filt_func/decam/CTIO_DECam.Y.dat +281 -0
  145. spisea-3.1.0/spisea/filt_func/decam/CTIO_DECam.g.dat +355 -0
  146. spisea-3.1.0/spisea/filt_func/decam/CTIO_DECam.i.dat +391 -0
  147. spisea-3.1.0/spisea/filt_func/decam/CTIO_DECam.r.dat +391 -0
  148. spisea-3.1.0/spisea/filt_func/decam/CTIO_DECam.u.dat +75 -0
  149. spisea-3.1.0/spisea/filt_func/decam/CTIO_DECam.z.dat +381 -0
  150. spisea-3.1.0/spisea/filt_func/euclid/H.dat +743 -0
  151. spisea-3.1.0/spisea/filt_func/euclid/J.dat +693 -0
  152. spisea-3.1.0/spisea/filt_func/euclid/VIS.dat +551 -0
  153. spisea-3.1.0/spisea/filt_func/euclid/Y.dat +343 -0
  154. spisea-3.1.0/spisea/filt_func/gaia/dr1/Gaia_passbands.txt +364 -0
  155. spisea-3.1.0/spisea/filt_func/gaia/dr1/README +1 -0
  156. spisea-3.1.0/spisea/filt_func/gaia/dr2/GaiaDR2_ReadMe +110 -0
  157. spisea-3.1.0/spisea/filt_func/gaia/dr2/Gaia_passbands.txt +3201 -0
  158. spisea-3.1.0/spisea/filt_func/gaia/dr2/README +1 -0
  159. spisea-3.1.0/spisea/filt_func/gaia/dr2_rev/GaiaDR2_ReadMe +110 -0
  160. spisea-3.1.0/spisea/filt_func/gaia/dr2_rev/Gaia_passbands.txt +3201 -0
  161. spisea-3.1.0/spisea/filt_func/gaia/dr2_rev/README +1 -0
  162. spisea-3.1.0/spisea/filt_func/gaia/edr3/Gaia_passbands.txt +781 -0
  163. spisea-3.1.0/spisea/filt_func/gaia/edr3/ReadMe +134 -0
  164. spisea-3.1.0/spisea/filt_func/hawki/H.dat +1255 -0
  165. spisea-3.1.0/spisea/filt_func/hawki/J.dat +1255 -0
  166. spisea-3.1.0/spisea/filt_func/hawki/Ks.dat +1255 -0
  167. spisea-3.1.0/spisea/filt_func/hipparcos/Hp.dat +115 -0
  168. spisea-3.1.0/spisea/filt_func/jwst/F070W.txt +305 -0
  169. spisea-3.1.0/spisea/filt_func/jwst/F090W.txt +327 -0
  170. spisea-3.1.0/spisea/filt_func/jwst/F115W.txt +390 -0
  171. spisea-3.1.0/spisea/filt_func/jwst/F140M.txt +306 -0
  172. spisea-3.1.0/spisea/filt_func/jwst/F150W.txt +505 -0
  173. spisea-3.1.0/spisea/filt_func/jwst/F150W2.txt +1986 -0
  174. spisea-3.1.0/spisea/filt_func/jwst/F162M.txt +476 -0
  175. spisea-3.1.0/spisea/filt_func/jwst/F164N.txt +206 -0
  176. spisea-3.1.0/spisea/filt_func/jwst/F182M.txt +506 -0
  177. spisea-3.1.0/spisea/filt_func/jwst/F187N.txt +256 -0
  178. spisea-3.1.0/spisea/filt_func/jwst/F200W.txt +619 -0
  179. spisea-3.1.0/spisea/filt_func/jwst/F210M.txt +407 -0
  180. spisea-3.1.0/spisea/filt_func/jwst/F212N.txt +206 -0
  181. spisea-3.1.0/spisea/filt_func/jwst/F250M.txt +339 -0
  182. spisea-3.1.0/spisea/filt_func/jwst/F277W.txt +1011 -0
  183. spisea-3.1.0/spisea/filt_func/jwst/F300M.txt +524 -0
  184. spisea-3.1.0/spisea/filt_func/jwst/F322W2.txt +1426 -0
  185. spisea-3.1.0/spisea/filt_func/jwst/F323N.txt +154 -0
  186. spisea-3.1.0/spisea/filt_func/jwst/F335M.txt +709 -0
  187. spisea-3.1.0/spisea/filt_func/jwst/F356W.txt +950 -0
  188. spisea-3.1.0/spisea/filt_func/jwst/F360M.txt +746 -0
  189. spisea-3.1.0/spisea/filt_func/jwst/F405N.txt +154 -0
  190. spisea-3.1.0/spisea/filt_func/jwst/F410M.txt +673 -0
  191. spisea-3.1.0/spisea/filt_func/jwst/F430M.txt +412 -0
  192. spisea-3.1.0/spisea/filt_func/jwst/F444W.txt +1150 -0
  193. spisea-3.1.0/spisea/filt_func/jwst/F460M.txt +561 -0
  194. spisea-3.1.0/spisea/filt_func/jwst/F466N.txt +192 -0
  195. spisea-3.1.0/spisea/filt_func/jwst/F470N.txt +192 -0
  196. spisea-3.1.0/spisea/filt_func/jwst/F480M.txt +450 -0
  197. spisea-3.1.0/spisea/filt_func/jwst/README.txt +1 -0
  198. spisea-3.1.0/spisea/filt_func/jwst/script.txt +29 -0
  199. spisea-3.1.0/spisea/filt_func/kepler/Kp.dat +625 -0
  200. spisea-3.1.0/spisea/filt_func/naco/H.dat +25 -0
  201. spisea-3.1.0/spisea/filt_func/naco/IB_2.00.dat +48 -0
  202. spisea-3.1.0/spisea/filt_func/naco/IB_2.03.dat +51 -0
  203. spisea-3.1.0/spisea/filt_func/naco/IB_2.06.dat +50 -0
  204. spisea-3.1.0/spisea/filt_func/naco/IB_2.24.dat +47 -0
  205. spisea-3.1.0/spisea/filt_func/naco/IB_2.27.dat +48 -0
  206. spisea-3.1.0/spisea/filt_func/naco/IB_2.30.dat +52 -0
  207. spisea-3.1.0/spisea/filt_func/naco/IB_2.33.dat +54 -0
  208. spisea-3.1.0/spisea/filt_func/naco/IB_2.36.dat +51 -0
  209. spisea-3.1.0/spisea/filt_func/naco/J.dat +22 -0
  210. spisea-3.1.0/spisea/filt_func/naco/Ks.dat +29 -0
  211. spisea-3.1.0/spisea/filt_func/naco/README.txt +1 -0
  212. spisea-3.1.0/spisea/filt_func/nirc1/H.txt +134 -0
  213. spisea-3.1.0/spisea/filt_func/nirc1/K.txt +140 -0
  214. spisea-3.1.0/spisea/filt_func/nirc2/Brgamma.dat +1724 -0
  215. spisea-3.1.0/spisea/filt_func/nirc2/FeII.dat +1198 -0
  216. spisea-3.1.0/spisea/filt_func/nirc2/H.dat +1905 -0
  217. spisea-3.1.0/spisea/filt_func/nirc2/Hcont.dat +1619 -0
  218. spisea-3.1.0/spisea/filt_func/nirc2/J.dat +1821 -0
  219. spisea-3.1.0/spisea/filt_func/nirc2/K.dat +2248 -0
  220. spisea-3.1.0/spisea/filt_func/nirc2/Kcont.dat +2052 -0
  221. spisea-3.1.0/spisea/filt_func/nirc2/Kp.dat +2259 -0
  222. spisea-3.1.0/spisea/filt_func/nirc2/Ks.dat +2179 -0
  223. spisea-3.1.0/spisea/filt_func/nirc2/Lp.dat +2300 -0
  224. spisea-3.1.0/spisea/filt_func/nirc2/Ms.dat +1598 -0
  225. spisea-3.1.0/spisea/filt_func/nirc2/filter_passbands.xls +0 -0
  226. spisea-3.1.0/spisea/filt_func/nirc2/wfc3_ir_F125W.dat.html +6562 -0
  227. spisea-3.1.0/spisea/filt_func/nsfcam/L.dat +390 -0
  228. spisea-3.1.0/spisea/filt_func/ogle/I.dat +683 -0
  229. spisea-3.1.0/spisea/filt_func/ogle/ReadMe.txt +4 -0
  230. spisea-3.1.0/spisea/filt_func/ogle/Rw.dat +802 -0
  231. spisea-3.1.0/spisea/filt_func/ogle/V.dat +683 -0
  232. spisea-3.1.0/spisea/filt_func/ps1/PS1_README.txt +26 -0
  233. spisea-3.1.0/spisea/filt_func/ps1/PS1_filters.txt +721 -0
  234. spisea-3.1.0/spisea/filt_func/rubin/README.txt +5 -0
  235. spisea-3.1.0/spisea/filt_func/rubin/g.dat +8508 -0
  236. spisea-3.1.0/spisea/filt_func/rubin/i.dat +8508 -0
  237. spisea-3.1.0/spisea/filt_func/rubin/r.dat +8508 -0
  238. spisea-3.1.0/spisea/filt_func/rubin/u.dat +8508 -0
  239. spisea-3.1.0/spisea/filt_func/rubin/y.dat +8508 -0
  240. spisea-3.1.0/spisea/filt_func/rubin/z.dat +8508 -0
  241. spisea-3.1.0/spisea/filt_func/subaru/hsc/Y.dat +96 -0
  242. spisea-3.1.0/spisea/filt_func/subaru/hsc/g.dat +187 -0
  243. spisea-3.1.0/spisea/filt_func/subaru/hsc/i.dat +566 -0
  244. spisea-3.1.0/spisea/filt_func/subaru/hsc/nb387.dat +38 -0
  245. spisea-3.1.0/spisea/filt_func/subaru/hsc/nb468.dat +54 -0
  246. spisea-3.1.0/spisea/filt_func/subaru/hsc/nb515.dat +35 -0
  247. spisea-3.1.0/spisea/filt_func/subaru/hsc/nb527.dat +40 -0
  248. spisea-3.1.0/spisea/filt_func/subaru/hsc/nb656.dat +52 -0
  249. spisea-3.1.0/spisea/filt_func/subaru/hsc/nb718.dat +74 -0
  250. spisea-3.1.0/spisea/filt_func/subaru/hsc/nb816.dat +74 -0
  251. spisea-3.1.0/spisea/filt_func/subaru/hsc/nb921.dat +961 -0
  252. spisea-3.1.0/spisea/filt_func/subaru/hsc/nb926.dat +94 -0
  253. spisea-3.1.0/spisea/filt_func/subaru/hsc/nb973.dat +99 -0
  254. spisea-3.1.0/spisea/filt_func/subaru/hsc/r.dat +582 -0
  255. spisea-3.1.0/spisea/filt_func/subaru/hsc/z.dat +65 -0
  256. spisea-3.1.0/spisea/filt_func/tess/tess.dat +857 -0
  257. spisea-3.1.0/spisea/filt_func/tycho/B.dat +34 -0
  258. spisea-3.1.0/spisea/filt_func/tycho/V.dat +47 -0
  259. spisea-3.1.0/spisea/filt_func/ubv/B.dat +1502 -0
  260. spisea-3.1.0/spisea/filt_func/ubv/I.dat +1402 -0
  261. spisea-3.1.0/spisea/filt_func/ubv/R.dat +1402 -0
  262. spisea-3.1.0/spisea/filt_func/ubv/README.txt +8 -0
  263. spisea-3.1.0/spisea/filt_func/ubv/U.dat +1585 -0
  264. spisea-3.1.0/spisea/filt_func/ubv/V.dat +1527 -0
  265. spisea-3.1.0/spisea/filt_func/ukirt/H.dat +1204 -0
  266. spisea-3.1.0/spisea/filt_func/ukirt/J.dat +803 -0
  267. spisea-3.1.0/spisea/filt_func/ukirt/K.dat +1203 -0
  268. spisea-3.1.0/spisea/filt_func/ukirt/README.txt +2 -0
  269. spisea-3.1.0/spisea/filt_func/ukirt/Y.dat +603 -0
  270. spisea-3.1.0/spisea/filt_func/ukirt/Z.dat +466 -0
  271. spisea-3.1.0/spisea/filt_func/vista/VISTA_Filters_at80K_forETC_H.dat +2176 -0
  272. spisea-3.1.0/spisea/filt_func/vista/VISTA_Filters_at80K_forETC_J.dat +2176 -0
  273. spisea-3.1.0/spisea/filt_func/vista/VISTA_Filters_at80K_forETC_Ks.dat +2176 -0
  274. spisea-3.1.0/spisea/filt_func/vista/VISTA_Filters_at80K_forETC_Y.dat +2439 -0
  275. spisea-3.1.0/spisea/filt_func/vista/VISTA_Filters_at80K_forETC_Z.dat +9801 -0
  276. spisea-3.1.0/spisea/filt_func/washington/C.dat +24 -0
  277. spisea-3.1.0/spisea/filt_func/washington/M.dat +21 -0
  278. spisea-3.1.0/spisea/filt_func/washington/T1.dat +21 -0
  279. spisea-3.1.0/spisea/filt_func/washington/T2.dat +20 -0
  280. spisea-3.1.0/spisea/filt_func/ztf/README.txt +13 -0
  281. spisea-3.1.0/spisea/filt_func/ztf/g.dat +1974 -0
  282. spisea-3.1.0/spisea/filt_func/ztf/i.dat +4002 -0
  283. spisea-3.1.0/spisea/filt_func/ztf/r.dat +3202 -0
  284. spisea-3.1.0/spisea/filters.py +765 -0
  285. spisea-3.1.0/spisea/ifmr.py +1083 -0
  286. spisea-3.1.0/spisea/imf/__init__.py +1 -0
  287. spisea-3.1.0/spisea/imf/imf.py +1398 -0
  288. spisea-3.1.0/spisea/imf/multiplicity.py +1742 -0
  289. spisea-3.1.0/spisea/merge_models.py +2526 -0
  290. spisea-3.1.0/spisea/reddening.py +2496 -0
  291. spisea-3.1.0/spisea/synthetic.py +2489 -0
  292. spisea-3.1.0/spisea/tests/__init__.py +4 -0
  293. spisea-3.1.0/spisea/tests/test_atmospheres.py +273 -0
  294. spisea-3.1.0/spisea/tests/test_atmospheres_grid_timing.py +62 -0
  295. spisea-3.1.0/spisea/tests/test_data/companions.fits +0 -0
  296. spisea-3.1.0/spisea/tests/test_data/star_systems.fits +0 -0
  297. spisea-3.1.0/spisea/tests/test_exceptions.py +37 -0
  298. spisea-3.1.0/spisea/tests/test_imf.py +547 -0
  299. spisea-3.1.0/spisea/tests/test_models.py +392 -0
  300. spisea-3.1.0/spisea/tests/test_multiplicity.py +764 -0
  301. spisea-3.1.0/spisea/tests/test_reddening.py +297 -0
  302. spisea-3.1.0/spisea/tests/test_synthetic.py +1970 -0
  303. spisea-3.1.0/spisea/utils/__init__.py +4 -0
  304. spisea-3.1.0/spisea/utils/objects.py +9 -0
  305. 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
@@ -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
+
@@ -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
@@ -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