tardis.io.model.parse_packet_source_configuration module¶
- tardis.io.model.parse_packet_source_configuration.initialize_packet_source(packet_source, config, geometry)[source]¶
 Initialize the packet source based on config and geometry
- Parameters:
 - configConfig
 The configuration object containing the supernova and plasma settings.
- geometryGeometry
 The geometry object containing the inner radius information.
- packet_sourceBasePacketSource
 The packet source object based on the configuration and geometry.
- Returns:
 - packet_sourceBasePacketSource
 The packet source object based on the configuration and geometry.
- Raises:
 - ValueError
 If both t_inner and luminosity_requested are None.
- tardis.io.model.parse_packet_source_configuration.parse_packet_source_from_config(config, geometry, enable_legacy_mode)[source]¶
 Parse the packet source based on the given configuration and geometry.
- Parameters:
 - configConfig
 The configuration object containing the supernova and plasma settings.
- geometryGeometry
 The geometry object containing the inner radius information.
- Returns:
 - packet_sourceBlackBodySimpleSource
 The packet source object based on the configuration and geometry.