Jet

class Jet(name='test', electron_distribution='lp', beaming_expr='delta', jet_workplace=None, verbose=None, clean_work_dir=True, **keywords)[source]

Bases: jetset.base_model.Model

This class allows to build a jet model providing the interface to the BlazarSED code, giving full access to the physical parameters and providing the methods to run the code. A Jet object will store the the physical parameters in the ModelParameterArray class, that is a collection of JetParameter objects.

Examples

Methods Summary

add_EC_component(EC_components)
add_par_from_dic(model_dic) add the JetParameter object to the ModelParameterArray
add_spectral_component(name)
debug_SSC()
debug_synch()
del_EC_component(EC_components)
del_par_from_dic(model_dic)
del_spectral_component(name[, verbose])
eval([init, fill_SED, nu, get_model, …]) Runs the BlazarSED code for the current JetModel instance.
get_DL_cm()
get_IC_mode()
get_IC_nu_size()
get_SED_peak([peak_name, freq_range, log_log])
get_SED_points([log_log, name])
get_SSC_mode()
get_beaming([theta, bulk_factor, beaming])
get_electron_distribution_name()
get_flag()
get_gamma_grid_size()
get_par_by_name(par_name) get parameter by type
get_par_by_type(par_type) get parameter by type
get_path()
get_seed_nu_size()
get_spectral_component_by_name(name[, verbose])
get_spectral_component_names_list()
get_sync_mode()
get_verbosity()
init_BlazarSED()
list_spectral_components()
load_model(file_name)
plot_model([plot_obj, clean, autoscale, …])
save_model(file_name)
set_B_eq(nuFnu_obs, nu_obs[, B_min, B_max, …]) returns equipartiont B
set_IC_mode(val)
set_IC_nu_size(val)
set_N_from_nuFnu(nuFnu_obs, nu_obs) sets the normalization of N to match the observed flux nu0F_nu0 at a given frequency nu_0
set_N_from_nuLnu(L_0, nu_0) sets the normalization of N to match the rest frame luminosity L_0, at a given frequency nu_0
set_SSC_mode(val)
set_electron_distribution(name)
set_emitting_region(beaming_expr)
set_flag(flag)
set_gamma_grid_size(val)
set_par(par_name, val) shortcut to ModelParametersArray.set method
set_path(path[, clean_work_dir])
set_seed_nu_size(val)
set_sync_mode(val)
set_verbosity(val)
show_model()
show_pars() shortcut to ModelParametersArray.show_pars method
show_spectral_components()

Methods Documentation

add_EC_component(EC_components)[source]
add_par_from_dic(model_dic)[source]

add the JetParameter object to the ModelParameterArray usign the dictionaries built by the build_emitting_region_dic() and build_electron_distribution_dic()

add_spectral_component(name)[source]
debug_SSC()[source]
debug_synch()[source]
del_EC_component(EC_components)[source]
del_par_from_dic(model_dic)[source]
del_spectral_component(name, verbose=True)[source]
eval(init=True, fill_SED=True, nu=None, get_model=False, loglog=False, plot=None, label=None, phys_output=False)[source]

Runs the BlazarSED code for the current JetModel instance.

Parameters:init – (boolean), “defualt=True” initializes the BlazarSED code for the current Jet instance parameters values.
get_DL_cm()[source]
get_IC_mode()[source]
get_IC_nu_size()[source]
get_SED_peak(peak_name=None, freq_range=None, log_log=False)[source]
get_SED_points(log_log=False, name='Sum')[source]
get_SSC_mode()[source]
get_beaming(theta=None, bulk_factor=None, beaming=None)[source]
get_electron_distribution_name()[source]
get_flag()[source]
get_gamma_grid_size()[source]
get_par_by_name(par_name)[source]

get parameter by type

get_par_by_type(par_type)[source]

get parameter by type

get_path()[source]
get_seed_nu_size()[source]
get_spectral_component_by_name(name, verbose=True)[source]
get_spectral_component_names_list()[source]
get_sync_mode()[source]
get_verbosity()[source]
init_BlazarSED()[source]
list_spectral_components()[source]
load_model(file_name)[source]
plot_model(plot_obj=None, clean=False, autoscale=True, label=None, comp=None)[source]
save_model(file_name)[source]
set_B_eq(nuFnu_obs, nu_obs, B_min=1e-09, B_max=1.0, N_pts=20, plot=False)[source]

returns equipartiont B

set_IC_mode(val)[source]
set_IC_nu_size(val)[source]
set_N_from_nuFnu(nuFnu_obs, nu_obs)[source]

sets the normalization of N to match the observed flux nu0F_nu0 at a given frequency nu_0

set_N_from_nuLnu(L_0, nu_0)[source]

sets the normalization of N to match the rest frame luminosity L_0, at a given frequency nu_0

set_SSC_mode(val)[source]
set_electron_distribution(name)[source]
set_emitting_region(beaming_expr)[source]
set_flag(flag)[source]
set_gamma_grid_size(val)[source]
set_par(par_name, val)[source]

shortcut to ModelParametersArray.set method set a parameter value

Parameters:
  • par_name – (srt), name of the parameter
  • val – parameter value
set_path(path, clean_work_dir=True)[source]
set_seed_nu_size(val)[source]
set_sync_mode(val)[source]
set_verbosity(val)[source]
show_model()[source]
show_pars()[source]

shortcut to ModelParametersArray.show_pars method shows all the paramters in the model

show_spectral_components()[source]