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"""Generate and upload automated circulars.""" 

2import ligo.followup_advocate 

3 

4from . import legacy_gracedb as gracedb 

5 

6 

7@gracedb.task(shared=False) 

8def create_initial_circular(graceid): 

9 """Create and return circular txt.""" 

10 return ligo.followup_advocate.compose(graceid, client=gracedb.client) 

11 

12 

13@gracedb.task(shared=False) 

14def create_emcoinc_circular(graceid): 

15 """Create and return the em_coinc circular txt.""" 

16 return ligo.followup_advocate.compose_raven(graceid, 

17 client=gracedb.client) 

18 

19 

20@gracedb.task(shared=False) 

21def create_update_circular(graceid, update_types=['sky_localization', 

22 'em_bright', 

23 'p_astro']): 

24 """Create and return update circular txt.""" 

25 return ligo.followup_advocate.compose_update(graceid, 

26 update_types=update_types, 

27 client=gracedb.client) 

28 

29 

30@gracedb.task(shared=False) 

31def create_retraction_circular(graceid): 

32 """Create and return retraction circular txt.""" 

33 return ligo.followup_advocate.compose_retraction(graceid, 

34 client=gracedb.client)