parameters: (self)
docstring: Queries user for SSRC.
docstring_summary: Queries user for SSRC.
docstring_tokens: Queries user for SSRC .
function: def ChooseSsrc(self):
          """Queries user for SSRC."""
  
          if len(self.ssrc_frequencies) == 1:
              chosen_ssrc = self.ssrc_frequencies.keys()[0]
              self.PrintSsrcInfo("", chosen_ssrc)
              return chosen_ssrc
  
          ssrc_is_incoming = misc.SsrcDirections(self.data_points)
          incoming = [
              ssrc for ssrc in ssrc_is_incoming if ssrc_is_incoming[ssrc]
          ]
          outgoing = [
              ssrc for ssrc in ssrc_is_incoming if not ssrc_is_incoming[ssrc]
          ]
  
          print("\nIncoming:\n")
          for (i, ssrc) in enumerate(incoming):
              self.PrintSsrcInfo(i, ssrc)
  
          print("\nOutgoing:\n")
          for (i, ssrc) in enumerate(outgoing):
              self.PrintSsrcInfo(i + len(incoming), ssrc)
  
          while True:
              chosen_index = int(misc.get_input("choose one> "))
              if 0 <= chosen_index < len(self.ssrc_frequencies):
                  return (incoming + outgoing)[chosen_index]
              else:
                  print("Invalid index!")
function_tokens: def ChooseSsrc ( self ) : if len ( self . ssrc_frequencies ) == 1 : chosen_ssrc = self . ssrc_frequencies . keys ( ) [ 0 ] self . PrintSsrcInfo ( "" , chosen_ssrc ) return chosen_ssrc ssrc_is_incoming = misc . SsrcDirections ( self . data_points ) incoming = [ ssrc for ssrc in ssrc_is_incoming if ssrc_is_incoming [ ssrc ] ] outgoing = [ ssrc for ssrc in ssrc_is_incoming if not ssrc_is_incoming [ ssrc ] ] print ( "\nIncoming:\n" ) for ( i , ssrc ) in enumerate ( incoming ) : self . PrintSsrcInfo ( i , ssrc ) print ( "\nOutgoing:\n" ) for ( i , ssrc ) in enumerate ( outgoing ) : self . PrintSsrcInfo ( i + len ( incoming ) , ssrc ) while True : chosen_index = int ( misc . get_input ( "choose one> " ) ) if 0 <= chosen_index < len ( self . ssrc_frequencies ) : return ( incoming + outgoing ) [ chosen_index ] else : print ( "Invalid index!" )