152 d = DefectsDB()
153
154 iov_range = None, None
155 iov_range = 185000 << 32, 185500 << 32
156
157
158 with timer("Fetch defect info"):
159 all_defects = d.retrieve(*iov_range)
160
161 with timer("fetch peripheral information"):
162 descriptions = d.all_defect_descriptions
163 intolerable = d.get_intolerable_defects()
164 virtual = d.virtual_defect_names
165
166 with timer("Fetch lumi inputs"):
167 lbs, lumis = fetch_lumi_inputs(iov_range, "ONLINE")
168
169 d = build_defects(descriptions, virtual, intolerable, lbs, lumis, all_defects)
170
171 target_dir = "/afs/cern.ch/user/p/pwaller/www/defects/test"
172 art_dir = pjoin(target_dir, "extern")
173
175 makedirs(art_dir)
176
177 copy_art(art_dir)
178
179 content = build_table(headings=heading_titles, defects=d)
180 with open(pjoin(target_dir, "test.html"), "w") as fd:
181 fd.write(content)
182
183
bool exists(const std::string &filename)
does a file exist