code: def update_output_directory(self, out_dir=None):
          
          # Determine the output directory
          if out_dir is not None:
              self.out_dir = out_dir
          elif len(self.tags) == 0:
              self.out_dir = self.name
          else:
              self.out_dir = self.tagged_name
          if not os.path.isabs(self.out_dir):
              self.out_dir = os.path.join(os.getcwd(), self.out_dir)
docs: Update the default output directory for output files.
  
          Parameters
          -----------
          out_dir : string (optional, default=None)
              If provided use this as the output directory. Else choose this
              automatically from the tags.