snsim.hosts¶
This module contains the class which are used in the simulation.
Classes¶
Class containing the SN Host parameters. |
Functions¶
|
Compute noise coming from host galaxy in photoelectron units (approximation) |
Module Contents¶
- class snsim.hosts.SnHosts(config, z_range=None, geometry=None)[source]¶
Class containing the SN Host parameters.
- Parameters:
config (str) –
Configuration of host.
config├── host_file, ‘PATH/TO/HOSTFILE’├── distrib, str, Optional, default = ‘rate’, options given by self._dist_options├── reweight_vol, bool, Optional, default = False, reweight input host distrib to volumetric└── key_dic: {‘column_name’: ‘new_column_name’, etc}, Optional, only use to change columns namesclass. (Initialize SnHost)
- property config¶
Get the configuration dic of host.
- property max_dz¶
Get the maximum redshift gap.
- property df¶
Get pandas Dataframe of host.