parameters: (self, local_file)
return_statement: return md5_key
docstring: Add ancillary file
docstring_summary: Add ancillary file
docstring_tokens: Add ancillary file
function: def add_ancillary_file(self, local_file):
          """ Add ancillary file"""
  
          config = self.config
          md5_sum = self._get_md5_sum(local_file)
  
          md5_file = f'{local_file}.md5'
          filename = os.path.split(md5_file)[1]
          collection_string = (f'{config["collection"]["name"]}__' +
                               f'{config["collection"]["version"]}')
          md5_key = (f's3://{config["buckets"]["internal"]["name"]}/staging/' +
                     f'{config["stack"]}/{collection_string}/{filename}')
          self._write_md5sum_file(md5_file, md5_sum)
          upload(md5_file, md5_key)
          return md5_key
function_tokens: def add_ancillary_file ( self , local_file ) : config = self . config md5_sum = self . _get_md5_sum ( local_file ) md5_file = f'{local_file}.md5' filename = os . path . split ( md5_file ) [ 1 ] collection_string = ( f'{config["collection"]["name"]}__' + f'{config["collection"]["version"]}' ) md5_key = ( f's3://{config["buckets"]["internal"]["name"]}/staging/' + f'{config["stack"]}/{collection_string}/{filename}' ) self . _write_md5sum_file ( md5_file , md5_sum ) upload ( md5_file , md5_key ) return md5_key