JetBase¶
- class JetBase(cosmo=None, name='test', emitters_type='electrons', emitters_distribution='pl', emitters_distribution_log_values=False, beaming_expr='delta', jet_workplace=None, verbose=None, nu_size=500, clean_work_dir=True, **keywords)[source]¶
Bases:
Model
JetBase class. This class allows to build a
Jet
model providing the interface to the C code, giving full access to the physical parameters and providing the methods to run the code. AJet
object will store the the physical parameters in the :Jet.parameters
that isModelParameterArray
class, i.e. a collection ofJetParameter
objects. All the physical parameters are also accessible as attributes of the :Jet.parameters
Attributes Summary
Methods Summary
add_EC_component
([EC_components_list, disk_type])add_SSC_component
([state])add_sync_component
([state])build_blob
([verbose])del_EC_component
(EC_components_list[, disk_type])del_par_from_dic
(model_dic)del_spectral_component
(name)energetic_report
([verbose])eval
(**kwargs)get_DL_cm
([eval])get_SED_peak
([peak_name, freq_range, log_log])get_beaming
(**kwargs)get_component_peak
([comp_name, log_log])get_flag
()get_path
()get_spectral_component_by_name
(name[, verbose])lin_func
(lin_nu, init[, phys_output, ...])load_model
(*args, **kwargs)load_old_model
(file_name)plot_model
([plot_obj, clean, label, comp, ...])save_model
(file_name)set_IC_nu_size
(val)set_blob
(**kwargs)set_emiss_lim
(val)set_emitters_distribution
([distr, ...])set_emitting_region
(beaming_expr, emitters_type)set_external_fields
(**kwargs)set_flag
(flag)set_gamma_grid_size
(val)set_nu_grid_size
(val)set_path
(path[, clean_work_dir])set_seed_nu_size
(val)set_verbosity
(val)shortcut to
ModelParametersArray.show_pars
method shows all the paramters in the modelAttributes Documentation
- IC_adaptive_e_binning¶
- IC_nu_size¶
- Norm_distr¶
- gamma_grid_size¶
- nu_grid_size¶
- nu_max¶
- nu_min¶
- nu_seed_size¶
- nu_size¶
Methods Documentation
- eval(**kwargs)¶
- get_beaming(**kwargs)¶
- classmethod load_model(*args, **kwargs)¶
- plot_model(plot_obj=None, clean=False, label=None, comp=None, sed_data=None, color=None, auto_label=True, line_style='-', frame='obs', density=False)[source]¶
- set_blob(**kwargs)¶
- set_emitters_distribution(distr=None, log_values=False, emitters_type='electrons', init=True)[source]¶
- set_external_fields(**kwargs)¶