Skip to content

Commit

Permalink
adding to docs and tests
Browse files Browse the repository at this point in the history
  • Loading branch information
karllark committed Nov 28, 2023
1 parent 27229d3 commit 60cba74
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 7 deletions.
2 changes: 2 additions & 0 deletions docs/dust_extinction/choose_model.rst
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,8 @@ observationally (e.g., in the extreme UV below 912 A).
+--------------+----------------+------------------+--------------+
| J13 MWRV31 | 0.00001 - 25 | 0.04 - 100000 | MW R(V)=3.1 |
+--------------+----------------+------------------+--------------+
| HD23 MWRV31 | 0.000033 - 10 | 0.1 - 30000 | MW R(V)=3.1 |
+--------------+----------------+------------------+--------------+

Shape Models
============
Expand Down
16 changes: 10 additions & 6 deletions docs/dust_extinction/model_flavors.rst
Original file line number Diff line number Diff line change
Expand Up @@ -351,7 +351,7 @@ Grain models
import matplotlib.pyplot as plt
import astropy.units as u

from dust_extinction.grain_models import DBP90, WD01, D03, ZDA04, C11, J13
from dust_extinction.grain_models import DBP90, WD01, D03, ZDA04, C11, J13, HD23

fig, ax = plt.subplots()

Expand All @@ -363,12 +363,14 @@ Grain models
WD01, WD01, WD01,
D03, D03, D03,
ZDA04,
C11, J13]
C11, J13,
HD23]
modelnames = ["MWRV31",
"MWRV31", "MWRV40", "MWRV55",
"MWRV31", "MWRV40", "MWRV55",
"BARE-GR-S",
"MWRV31", "MWRV31"]
"MWRV31", "MWRV31",
"MWRV31"]

for cmodel, cname in zip(models, modelnames):
ext_model = cmodel(cname)
Expand Down Expand Up @@ -400,7 +402,7 @@ Grain models
from matplotlib.ticker import ScalarFormatter
import astropy.units as u

from dust_extinction.grain_models import DBP90, WD01, D03, ZDA04, C11, J13
from dust_extinction.grain_models import DBP90, WD01, D03, ZDA04, C11, J13, HD23

fig, ax = plt.subplots()

Expand All @@ -412,12 +414,14 @@ Grain models
WD01, WD01, WD01,
D03, D03, D03,
ZDA04,
C11, J13]
C11, J13,
HD23]
modelnames = ["MWRV31",
"MWRV31", "MWRV40", "MWRV55",
"MWRV31", "MWRV40", "MWRV55",
"BARE-GR-S",
"MWRV31", "MWRV31"]
"MWRV31", "MWRV31",
"MWRV31"]

for cmodel, cname in zip(models, modelnames):
ext_model = cmodel(cname)
Expand Down
2 changes: 1 addition & 1 deletion dust_extinction/grain_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -628,7 +628,7 @@ class HD23(GMBase):
plt.show()
"""

x_range = [1.0 / 1e5, 1.0 / 4e-2]
x_range = [1.0 / 3e4, 1.0 / 0.1]

possnames = {"MWRV31": ("astrodust+PAH_MW_RV3.1.fits", 3.1)}

Expand Down

0 comments on commit 60cba74

Please sign in to comment.