| 
       
     | 
      
        
          external_call(command) 
      Makes an internal call to the shell (with the current set 
      environment), wait for completion and returns the output and error of
      the command. | 
          
            source code
            
           | 
         
       
      
     | 
  
    | 
       
     | 
      
        
          system_call(item,
        command,
        divert_output_to_log=True) 
      Makes a system call. | 
          
            source code
            
           | 
         
       
      
     | 
  
    | 
       
     | 
      
        
          get_time() 
      Returns the current time in human-readable format | 
          
            source code
            
           | 
         
       
      
     | 
  
    | 
       
     | 
      
      
     | 
  
    | 
       
     | 
      
      
     | 
  
    | 
       
     | 
      
        
          logfile_name() 
      Returns the file of the logfile; used in 'info' and 'system_call' | 
          
            source code
            
           | 
         
       
      
     | 
  
    | 
       
     | 
      
        
          info(item,
        text) 
      Prints an info into the log-file. | 
          
            source code
            
           | 
         
       
      
     | 
  
    | 
       
     | 
      
        
          send_mail(subject,
        msg,
        email_addresses=None,
        extra_addresses=None) 
      Function to send an email to a certain adress | 
          
            source code
            
           | 
         
       
      
     | 
  
    | 
       
     | 
      
        
          notify(grb,
        dag,
        message) 
      Makes an email notification to all recipients listed in the config 
      file. | 
          
            source code
            
           | 
         
       
      
     | 
  
    | 
       
     | 
      
        
          get_lockname() 
      Returns the name of the lock file | 
          
            source code
            
           | 
         
       
      
     | 
  
    | 
       
     | 
      
      
     | 
  
    | 
       
     | 
      
        
          set_lock() 
      Sets the lock file and writes the PID of this process | 
          
            source code
            
           | 
         
       
      
     | 
  
    | 
       
     | 
      
      
     | 
  
    | 
       
     | 
      
      
     | 
  
    | 
       
     | 
      
        
          check_file(filename) 
      Check the existance of a file and that it is non-zero in size (which 
      is useful for segment files...) | 
          
            source code
            
           | 
         
       
      
     | 
  
    | 
       
     | 
      
      
     | 
  
    | 
       
     | 
      
        
          convert_segxml_to_segtxt(segxmlfile,
        segtxtfile) 
      Converts a segment xml file into a segment text file for convenience. | 
          
            source code
            
           | 
         
       
      
     | 
  
    | 
       
     | 
      
        
          read_xmlsegfile(xmlsegfile) 
      Function to read a segment list from a xml segment file | 
          
            source code
            
           | 
         
       
      
     | 
  
    | 
       
     | 
      
      
     | 
  
    | 
       
     | 
      
      
     | 
  
    | 
       
     | 
      
        
          get_veto_overlaps(segment,
        xmlsegfile) 
      Returns all vetoes from the file 'xmlsegfile' that overlap with the 
      given 'segment' | 
          
            source code
            
           | 
         
       
      
     | 
  
    | 
       
     | 
      
        
          check_veto_time(used_ifos,
        list_cat,
        timerange,
        path='.',
        tag=None) 
      Function to check if the given timerange overlaps with some CAT veto | 
          
            source code
            
           | 
         
       
      
     | 
  
    | 
       
     | 
      
        
          get_segment_info(pas,
        timerange,
        minsciseg,
        plot_segments_file=None,
        path='.',
        tag=None,
        segs1=False) 
      Function to get the segment info for a timerange | 
          
            source code
            
           | 
         
       
      
     | 
  
    | 
       
     | 
      
        
          plot_segment_info(segdict,
        onsource,
        offsource,
        centertime,
        output_filename,
        plot_offset=1000,
        tag='') 
      Function to plot the segments around a 'centertime' | 
          
            source code
            
           | 
         
       
      
     | 
  
    | 
       
     | 
      
        
          get_available_ifos(trigger,
        minscilength,
        path='.',
        tag='',
        useold=False,
        offset=2000,
        onsource=None) 
      Function for a full scale check how many IFOs are available for a given time... | 
          
            source code
            
           | 
         
       
      
     | 
  
    | 
       
     | 
      
      
     | 
  
    | 
       
     | 
      
      
     | 
  
    | 
       
     | 
      
        
          parse_trigger_list(trigger_file,
        processed=[],
        max_number=None,
        specific_name=None) 
      This function parses the GRB list provided by Isabel and returns a 
      list of new GRBs | 
          
            source code
            
           | 
         
       
      
     | 
  
    | 
       
     | 
      
      
     | 
  
    | 
       
     | 
      
      
     | 
  
    | 
       
     | 
      
      
     | 
  
    | 
       
     | 
      
      
     | 
  
    | 
       
     | 
      
        
          read_grb_from_list(grb_name) 
      Returns the object associated with the given GRB. | 
          
            source code
            
           | 
         
       
      
     | 
  
    | 
       
     | 
      
        
          copy_exttrig_nofications() 
      Copying all relevant files to the working directory, usually from CIT
      from Isabels pwd | 
          
            source code
            
           | 
         
       
      
     | 
  
    | 
       
     | 
      
        
          update_durations(monitor_list) 
      Reads the local copy of the parsed circular and updated any duration 
      information in the monitor_list structure | 
          
            source code
            
           | 
         
       
      
     | 
  
    | 
       
     | 
      
      
     | 
  
    | 
       
     | 
      
        
          generate_summary(publish_path,
        publish_url) 
      Generating summary page, with all sanity and/or openbox results 
      properly linked. | 
          
            source code
            
           | 
         
       
      
     | 
  
    | 
       
     | 
      
      
     | 
  
    | 
       
     | 
      
      
     |