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

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

18

19

20

21

22

23

24

25

26

27

28

29

30

31

32

33

34

"""Generate and upload automated circulars.""" 

import ligo.followup_advocate 

 

from . import gracedb 

 

 

@gracedb.task(shared=False) 

def create_initial_circular(graceid): 

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

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

 

 

@gracedb.task(shared=False) 

def create_emcoinc_circular(graceid): 

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

return ligo.followup_advocate.compose_raven(graceid, 

client=gracedb.client) 

 

 

@gracedb.task(shared=False) 

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

'em_bright', 

'p_astro']): 

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

return ligo.followup_advocate.compose_update(graceid, 

update_types=update_types, 

client=gracedb.client) 

 

 

@gracedb.task(shared=False) 

def create_retraction_circular(graceid): 

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

return ligo.followup_advocate.compose_retraction(graceid, 

client=gracedb.client)