original_docstring:  read qoi configuration from yaml file
          Args:
              fname(str): file to read yaml file from.  If no argument is passed
                  then use the filename attribute.  If the filename is set, then
                  the filename attribute is also set.
          
docstring: read qoi configuration from yaml file
docstring_tokens: read qoi configuration from yaml file
code: def read(self,filename=None): 
          """ read qoi configuration from yaml file
          Args:
              fname(str): file to read yaml file from.  If no argument is passed
                  then use the filename attribute.  If the filename is set, then
                  the filename attribute is also set.
          """
          assert isinstance(filename,str)
  
          # set the attribute if not none
          if filename is not None:
              self.filename = filename
          
          try:
              with open(self.filename,'r') as f:
                  self.qois = yaml.load(f, OrderedDictYAMLLoader)
          except:
              raise
  
          # <------------------ 
          self.qoi_names = [k for k in self.qois]
code_tokens: def read ( self , filename = None ) : assert isinstance ( filename , str ) if filename is not None : self . filename = filename try : with open ( self . filename , 'r' ) as f : self . qois = yaml . load ( f , OrderedDictYAMLLoader ) except : raise self . qoi_names = [ k for k in self . qois ]
short_docstring: read qoi configuration from yaml file
short_docstring_tokens: read qoi configuration from yaml file
comment: """ read qoi configuration from yaml file
          Args:
              fname(str): file to read yaml file from.  If no argument is passed
                  then use the filename attribute.  If the filename is set, then
                  the filename attribute is also set.
          """$SEP$# set the attribute if not none$SEP$# <------------------ 