llama.files.i3.tex module¶
FileHandler
for making a nicely-formatted LaTeX table of IceCube neutrinos
including their reconstructed properties and their joint significance when
combined with a gravitational wave.
-
class
llama.files.i3.tex.
IceCubeNeutrinoListTex
¶ Bases:
llama.filehandler.FileHandler
A list of neutrinos and their reconstructed properties as well as the significance of the joint event) in LaTeX format suitable for use in papers and coincident skymap summary plots.
-
DEPENDENCIES
= (<class 'llama.files.i3.json.IceCubeNeutrinoList'>, <class 'llama.files.skymap_info.SkymapInfo'>, <class 'llama.files.coinc_significance.opa.CoincSignificanceI3Lvc'>)¶
-
FILENAME
= 'IceCubeNeutrinoList.tex'¶
-
MANIFEST_TYPES
= (<class 'llama.files.i3.tex.IceCubeNeutrinoListTex'>,)¶
-
UR_DEPENDENCIES
= (<class 'llama.files.skymap_info.SkymapInfo'>, <class 'llama.files.lvc_skymap.LvcSkymapFits'>, <class 'llama.files.i3.json.IceCubeNeutrinoList'>, <class 'llama.files.gracedb.LVCGraceDbEventData'>, <class 'llama.files.lvc_skymap.LvcDistancesJson'>, <class 'llama.files.lvc_skymap.LvcSkymapHdf5'>, <class 'llama.files.gracedb.PAstro'>, <class 'llama.files.coinc_significance.opa.CoincSignificanceI3Lvc'>)¶
-
UR_DEPENDENCY_TREE
= ImmutableDict({<class 'llama.files.coinc_significance.opa.CoincSignificanceI3Lvc'>: ImmutableDict({<class 'llama.files.gracedb.PAstro'>: ImmutableDict({<class 'llama.files.skymap_info.SkymapInfo'>: ImmutableDict({})}), <class 'llama.files.lvc_skymap.LvcSkymapHdf5'>: ImmutableDict({<class 'llama.files.lvc_skymap.LvcSkymapFits'>: ImmutableDict({<class 'llama.files.skymap_info.SkymapInfo'>: ImmutableDict({})})}), <class 'llama.files.lvc_skymap.LvcDistancesJson'>: ImmutableDict({<class 'llama.files.lvc_skymap.LvcSkymapFits'>: ImmutableDict({<class 'llama.files.skymap_info.SkymapInfo'>: ImmutableDict({})})}), <class 'llama.files.skymap_info.SkymapInfo'>: ImmutableDict({}), <class 'llama.files.gracedb.LVCGraceDbEventData'>: ImmutableDict({<class 'llama.files.skymap_info.SkymapInfo'>: ImmutableDict({})}), <class 'llama.files.i3.json.IceCubeNeutrinoList'>: ImmutableDict({<class 'llama.files.skymap_info.SkymapInfo'>: ImmutableDict({})})}), <class 'llama.files.i3.json.IceCubeNeutrinoList'>: ImmutableDict({<class 'llama.files.skymap_info.SkymapInfo'>: ImmutableDict({})}), <class 'llama.files.skymap_info.SkymapInfo'>: ImmutableDict({})})¶
-
-
llama.files.i3.tex.
convert_json_neutrinos_to_latex
(infilename, outfilename, gpstime=None, p_values=None)¶ Take a json-formatted input filename and an output filename (both full paths) as arguments. Convert the neutrino list in the infile into a LaTeX table that can be inserted into a LaTeX document and save it to the path specified in outfilename. If an optional gpstime is given, then the time column will be given as the time difference in seconds between the neutrino’s arrival and the GPS time provided, i.e. the neutrino detection time with t=0 defined as the GPS time. If a list of
p_values
corresponding to the neutrinos ininfilename
are provided, then an extra column is added with the P-values.
-
llama.files.i3.tex.
latex_header
(num_cols)¶ Return a header with the appropriate number of columns for a LaTeX table section.