original_docstring:  write qoi configuration to yaml file
  
          Args:
              fname(str): file to write yaml from from.  If no argument is passed
                 then use the filename attribute.  If the filename is set, then 
                 the filename attribute is also set.
          
docstring: write qoi configuration to yaml file
docstring_tokens: write qoi configuration to yaml file
code: def write(self,filename=None):
          """ write qoi configuration to yaml file
  
          Args:
              fname(str): file to write yaml from from.  If no argument is passed
                 then use the filename attribute.  If the filename is set, then 
                 the filename attribute is also set.
          """
  
          # set the attribute if not none
          if filename is not None:
              self.filename = filename
  
          # marshall attributes into a dictionary
          _qoidb = copy.deepcopy(self.qois)
  
          # dump to yaml file
          with open(self.filename,'w') as f:
              yaml.dump(_qoidb,f, default_flow_style=False)
code_tokens: def write ( self , filename = None ) : if filename is not None : self . filename = filename _qoidb = copy . deepcopy ( self . qois ) with open ( self . filename , 'w' ) as f : yaml . dump ( _qoidb , f , default_flow_style = False )
short_docstring: write qoi configuration to yaml file
short_docstring_tokens: write qoi configuration to yaml file
comment: """ write qoi configuration to yaml file
  
          Args:
              fname(str): file to write yaml from 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$# marshall attributes into a dictionary$SEP$# dump to yaml file