uvex_transients.dust.get_dust_law#
- uvex_transients.dust.get_dust_law(dust_law: str | None = None)[source]#
Return the (cached, instantiated) reddening law to use.
- Parameters:
dust_law (
str, optional) – Name of a registered law (case-insensitive), currently just"g23"(dust_extinction.parameter_averages.G23). IfNone(the default), the configured default (config["physics.default_dust_law"],"g23"out of the box) is used.- Returns:
Instantiated reddening law, exposing
.Rv,.x_range, andlaw(x) -> A(x)/A(V)– see log_attenuation.- Return type:
dust_extinction.baseclasses.BaseExtModel- Raises:
KeyError – If
dust_law(or the configured default) doesn’t name a registered law.