get_sn_scene#
- get_sn_scene(model='salt', background='zodi', host={}, **kwargs)[source]#
Get a scene configuration for a supernova model.
Deprecated since version 1.3.1: Use
get_scene(source="snia-{model}", ...)instead.This function generates a dictionary that defines a scene containing a supernova, a background, and a host galaxy. The scene can then be used to generate a simulation.
- Parameters:
model (
str, optional) – The name of the supernova model to use. Can be"salt","twin"or any othersncosmoSALT source name. Default is"salt".background (
strordict, optional) – The background configuration, seeget_scene. Default is"zodi".host (
dict, optional) – A dictionary defining the host galaxy. Default is an empty dict.**kwargs – Additional keyword arguments to pass to the supernova model.
- Returns:
- Warns:
DeprecationWarning – Always, since this function is deprecated in favour of
get_scene.