docs: def is_tomodir(directory):
      """Check if the supplied directory is a tomodir
  
      Parameters
      ----------
      directory: string
          Check if the supplied path is a valid tomodir
  
      Returns
      -------
      is_tomodir: bool
          True if the supplied directory is a tomodir directory
      """
      if os.path.isdir(directory):
          if(os.path.isdir(directory + "/exe") and
             os.path.isdir(directory + "/config") and
             os.path.isdir(directory + "/rho") and
             os.path.isdir(directory + "/inv") and
             os.path.isdir(directory + "/mod")):
                  return True
          else:
                  return False
      else:
          return False