Hide keyboard shortcuts

Hot-keys on this page

r m x p   toggle line displays

j k   next/prev highlighted chunk

0   (zero) top of page

1   (one) first highlighted chunk

1# (c) Stefan Countryman 2017 

2 

3""" 

4A collection of FileHandler classes for a given pipeline. 

5""" 

6 

7# from llama.files import abstract 

8from llama import utils 

9 

10from llama.files.lvc_skymap import ( 

11 LvcSkymapFits, 

12 LvcSkymapHdf5, 

13 LvcDistancesJson, 

14 RctSlkLmaLvcDistancesJson, 

15) 

16# NOTE: DO NOT BOTHER WITH lvc_skymap_txt. It was used with the 

17# O2 matlab code and is very resource inefficient, not to mention unused. 

18# from lvc_skymap_txt import LvcSkymapTxt 

19from llama.files.i3 import ( 

20 IceCubeNeutrinoList, 

21 IceCubeNeutrinoListTxt, 

22 IceCubeNeutrinoListCoincTxt, 

23 IceCubeNeutrinoListTex, 

24) 

25from llama.files.fermi_grb import FermiGRBsJSON 

26# from llama.files.gcn_draft_o2 import ( 

27 # I3LvcGcnDraft, 

28 # RctTeamI3LvcGcnDraft, 

29# ) 

30 

31from llama.files.lvc_gcn_xml import LvcGcnXml, LvcRetractionXml 

32from llama.files.lvalert_json import LVAlertJSON 

33from llama.files.skymap_info import SkymapInfo 

34from llama.files.gracedb import ( 

35 LVCGraceDbEventData, 

36 RctSlkLmaLVCGraceDbEventData, 

37 PAstro, 

38) 

39from llama.files.ztf_trigger_list import ZtfTriggerList 

40 

41# LLAMA 2.0 pipeline 

42from llama.files.coinc_significance import ( 

43 CoincSignificanceI3Lvc, 

44 RctSlkLmaCoincSignificanceI3Lvc, 

45 CoincSignificanceSubthresholdI3Lvc, 

46 RctSlkLmaCoincSignificanceSubthresholdI3Lvc, 

47) 

48from llama.files.coinc_plots import ( 

49 CoincScatterI3LvcPdf, 

50 RctSlkLmaCoincScatterI3LvcPdf, 

51 CoincScatterI3LvcPng, 

52 RctSlkLmaCoincScatterI3LvcPng, 

53 CoincScatterZtfLVCPdf, 

54 RctSlkLmaCoincScatterZtfLVCPdf, 

55 CoincScatterZtfLVCPng, 

56 RctSlkLmaCoincScatterZtfLVCPng, 

57 CoincScatterZtfI3LvcPdf, 

58 RctSlkLmaCoincScatterZtfI3LvcPdf, 

59 CoincScatterZtfI3LvcPng, 

60 RctSlkLmaCoincScatterZtfI3LvcPng, 

61 CoincSummaryI3LvcTex, 

62 CoincSummaryI3LvcPdf, 

63 RctSlkI3CoincSummaryI3LvcPdf, 

64 RctSlkLmaCoincSummaryI3LvcPdf, 

65) 

66 

67# Slack receipts that had to be defined in ``llama.files.slack`` due to import 

68# order 

69from llama.files.slack import ( 

70 RctSlkLmaSkymapInfo, 

71 RctSlkLmaLvcGcnXml, 

72 RctSlkLmaLvcRetractionXml, 

73 RctSlkLmaLVAlertJSON, 

74) 

75 

76# GCN notice; these have been removed from the code, but remain commented out 

77# here as a reminder of what they were called in case the functionality needs 

78# to be found again. 

79# from gwhen_coinc_txt import GWHENCoincTxt 

80# from receipt_gcn_gwhen_coinc_txt_log import RctGcnGwhenCoincTxt 

81 

82# from llama.files.coinc_analyses import ( 

83# CoincSkymapFermiLVCHDF5, 

84# CoincSkymapI3LvcHDF5, 

85# CoincSkymapFermiI3LvcHDF5, 

86# CoincSkymapFermiIceCubeHDF5, 

87# CoincLikelihoodPltsPlotsI3Lvc, 

88# CoincLikelihoodPltsPlotsFermiLVC, 

89# CoincLikelihoodPltsPlotsFermiIceCube, 

90# CoincLikelihoodPltsPlotsFermiI3Lvc, 

91# TODO Might remove skymap stats alltogether in the future if unused 

92# CoincLikelihoodStatsFermiLVC, 

93# CoincLikelihoodStatsI3Lvc, 

94# CoincLikelihoodStatsFermiI3Lvc, 

95# CoincLikelihoodStatsFermiIceCube, 

96# ) 

97 

98# run the coincident analysis (LLAMA 1.0) 

99# from coinc_o2 import ( 

100# CoincAnalysisInitialIcecubeJson 

101# ) 

102# from coinc_o2 import IceCubeNeutrinoListMat 

103# from coinc_o2 import HENlistONSOURCEIceCubeMat 

104# from coinc_o2 import LvcSkymapMat 

105# generate joint neutrino/GW skymap plots 

106# from coinc_o2 import ( 

107# CoincSkymapO2Large 

108# ) 

109 

110# upload files to gw-astronomy.org 

111# from llama.files.gwastro import ( 

112 # RctGwaCoincAnalysisInitialIceCubeJSON, 

113 # RctGwaCoincSkymapInitialIceCubeLargePNG, 

114 # RctGwaIceCubeNeutrinoListTXT, 

115 # RctGwaLvcGcnXml, 

116# ) 

117 

118# upload files to gracedb.ligo.org 

119# from llama.files.gracedb import ( 

120# RctGdbIceCubeNeutrinoList, 

121# RctGdbCoincSkymapO2Large 

122# ) 

123 

124from llama.files.advok import Advok 

125from llama.files.lvalert_advok import LVAlertAdvok 

126 

127# email alerts for the LLAMA team 

128# from llama.files.team_receipts import ( 

129# ) 

130 

131# sms alerts for the LLAMA team 

132# from llama.files.sms_receipts import RctSMSAdvokJSON 

133 

134# run timing checks on ldas-pcdev2.ligo.caltech.edu 

135# from timing_checks import TimingChecks 

136__all__ = [ 

137 # utilities and abstract classes 

138 # 'abstract', 

139 'utils', 

140 # skymap loading 

141 'LvcSkymapFits', 

142 'LvcSkymapHdf5', 

143 'LvcDistancesJson', 

144 'IceCubeNeutrinoList', 

145 'IceCubeNeutrinoListTxt', 

146 'IceCubeNeutrinoListCoincTxt', 

147 'IceCubeNeutrinoListTex', 

148 'FermiGRBsJSON', 

149 # 'I3LvcGcnDraft', 

150 # LLAMA 2.0 pipeline 

151 'CoincSignificanceI3Lvc', 

152 'CoincScatterI3LvcPdf', 

153 'CoincScatterI3LvcPng', 

154 'CoincSummaryI3LvcTex', 

155 'CoincSummaryI3LvcPdf', 

156 # classes related to incoming alerts 

157 'LvcGcnXml', 

158 'LvcRetractionXml', 

159 'LVAlertJSON', 

160 'SkymapInfo', 

161 'LVCGraceDbEventData', 

162 'PAstro', 

163 # new, python-based coincident analysis 

164 # 'CoincSkymapFermiLVCHDF5', 

165 # 'CoincSkymapI3LvcHDF5', 

166 # 'CoincSkymapFermiI3LvcHDF5', 

167 # 'CoincSkymapFermiIceCubeHDF5', 

168 # 'CoincLikelihoodPltsPlotsI3Lvc', 

169 # 'CoincLikelihoodPltsPlotsFermiLVC', 

170 # 'CoincLikelihoodPltsPlotsFermiIceCube', 

171 # 'CoincLikelihoodPltsPlotsFermiI3Lvc', 

172 # TODO Might remove skymap stats alltogether in the future if unused 

173 # 'CoincLikelihoodStatsFermiLVC', 

174 # 'CoincLikelihoodStatsI3Lvc', 

175 # 'CoincLikelihoodStatsFermiI3Lvc', 

176 # 'CoincLikelihoodStatsFermiIceCube', 

177 # is this an ADVOK event? should a notice go out? 

178 'Advok', 

179 'LVAlertAdvok', 

180 # upload to gw-astronomy.org 

181 # 'RctGwaIceCubeNeutrinoListTXT', 

182 # upload to gracedb 

183 # 'RctGdbIceCubeNeutrinoList', 

184 # email team 

185 # 'RctTeamI3LvcGcnDraft', 

186 # sms team 

187 # 'RctSMSAdvokJSON', 

188 # Slack receipts 

189 'RctSlkI3CoincSummaryI3LvcPdf', 

190 'RctSlkLmaCoincSummaryI3LvcPdf', 

191 'RctSlkLmaCoincScatterI3LvcPdf', 

192 'RctSlkLmaCoincScatterI3LvcPng', 

193 'RctSlkLmaCoincScatterZtfI3LvcPdf', 

194 'RctSlkLmaCoincScatterZtfI3LvcPng', 

195 'RctSlkLmaCoincScatterZtfLVCPdf', 

196 'RctSlkLmaCoincScatterZtfLVCPng', 

197 'RctSlkLmaCoincSignificanceI3Lvc', 

198 'RctSlkLmaLVAlertJSON', 

199 'RctSlkLmaLVCGraceDbEventData', 

200 'RctSlkLmaLvcGcnXml', 

201 'RctSlkLmaLvcRetractionXml', 

202 'RctSlkLmaSkymapInfo', 

203 'RctSlkLmaLvcDistancesJson', 

204 'ZtfTriggerList', 

205 'CoincScatterZtfLVCPdf', 

206 'CoincScatterZtfLVCPng', 

207 'CoincScatterZtfI3LvcPdf', 

208 'CoincScatterZtfI3LvcPng', 

209]