cosmogrb.sampler package¶
Submodules¶
cosmogrb.sampler.background module¶
-
class
cosmogrb.sampler.background.
Background
(tstart, tstop, average_rate=1000, background_spectrum_template=None)[source]¶
-
class
cosmogrb.sampler.background.
BackgroundSpectrumTemplate
(counts, start_at_one=False)[source]¶ Bases:
object
cosmogrb.sampler.constant_cpl module¶
-
class
cosmogrb.sampler.constant_cpl.
ConstantCPL
(peak_flux=1e-06, ep=300.0, alpha=-1.0, emin=10.0, emax=10000.0, response=None)[source]¶ Bases:
cosmogrb.sampler.source_function.SourceFunction
cosmogrb.sampler.cpl_source module¶
-
class
cosmogrb.sampler.cpl_source.
CPLSourceFunction
(peak_flux=1e-06, ep_start=300.0, ep_tau=1.0, alpha=-1.0, trise=1.0, tdecay=2, emin=10.0, emax=10000.0, response=None)[source]¶ Bases:
cosmogrb.sampler.source_function.SourceFunction
cosmogrb.sampler.sampler module¶
cosmogrb.sampler.source module¶
-
class
cosmogrb.sampler.source.
Source
(tstart, tstop, source_function, z, use_plaw_sample=False)[source]¶ Bases:
cosmogrb.sampler.sampler.Sampler
-
display_energy_dependent_light_curve
(time, energy, ax=None, cmap='viridis', **kwargs)[source]¶ FIXME! briefly describe function
Parameters: - time –
- energy –
- ax –
- cmap –
Returns: Return type:
-
display_energy_integrated_light_curve
(time, ax=None, **kwargs)[source]¶ FIXME! briefly describe function
Parameters: - time –
- ax –
Returns: Return type:
-
z
¶
-
Module contents¶
-
class
cosmogrb.sampler.
SourceFunction
(emin=10.0, emax=10000.0, index=None, response=None)[source]¶ Bases:
object
-
display_energy_dependent_light_curve
(time, energy, ax=None, cmap='viridis', **kwargs)[source]¶ plot the latent light curve integrated over energy
Parameters: - time –
- ax –
Returns: Return type:
-
display_energy_integrated_light_curve
(time, ax=None, **kwargs)[source]¶ plot the latent light curve integrated over energy
Parameters: - time –
- ax –
Returns: Return type:
-
emax
¶
-
emin
¶
-
energy_integrated_evolution
(time)[source]¶ return the integral over energy at a given time via Simpson’s rule
Parameters: time – the time of the pulse Returns: Return type:
-
index
¶
-
response
¶
-
-
class
cosmogrb.sampler.
Source
(tstart, tstop, source_function, z, use_plaw_sample=False)[source]¶ Bases:
cosmogrb.sampler.sampler.Sampler
-
display_energy_dependent_light_curve
(time, energy, ax=None, cmap='viridis', **kwargs)[source]¶ FIXME! briefly describe function
Parameters: - time –
- energy –
- ax –
- cmap –
Returns: Return type:
-
display_energy_integrated_light_curve
(time, ax=None, **kwargs)[source]¶ FIXME! briefly describe function
Parameters: - time –
- ax –
Returns: Return type:
-
z
¶
-
-
class
cosmogrb.sampler.
Background
(tstart, tstop, average_rate=1000, background_spectrum_template=None)[source]¶
-
class
cosmogrb.sampler.
CPLSourceFunction
(peak_flux=1e-06, ep_start=300.0, ep_tau=1.0, alpha=-1.0, trise=1.0, tdecay=2, emin=10.0, emax=10000.0, response=None)[source]¶ Bases:
cosmogrb.sampler.source_function.SourceFunction