##^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^Lance Simms, Stanford University 2009
#!/usr/bin/env python

#A simple print of a string
def print_string()
  a="hello"
  print "hello",a

#Print a string formatted to two decimal places
def print_format_string()
  m=2.999934
  mstr = "%.2f" % m
  print mstr

#Search the string MCDFile for the terms 'H1RG-022', etc.
def search_string_1(MCDFile)
  H1 = re.compile(r'H1RG-022')
  H2 = re.compile(r'H2RG-32-147')
  H4 = re.compile(r'H4RG-10-007')
  if H1.search(self.MCDFile) :
    self.Det = 'H1RG-022'
  elif H2.search(self.MCDFile) :
    self.Det = 'H2RG-32-147'
  elif H4.search(self.MCDFile) :
    self.Det = 'H4RG-10-007'


