INNER CODE UNIT · Python
downloadjob_creator_caller
kblin/ncbi-genome-download · ncbi_genome_download/core.py:442
def downloadjob_creator_caller(args): # pragma: no cover # No point testing this without testing multiprocessing d/ls
"""Call the download job function from a worker pool runner."""
return create_downloadjob(*args)
def create_downloadjob(entry, domain, config):
"""Create download jobs for all file formats from a summary file entry."""
logger = logging.getLogger("ncbi-genome-download")
logger.info('Checking record %r', entry['assembly_accession'])
full_output_dir = create_dir(entry, config.section, domain, config.output, config.flat_output)
symlink_path = None
if config.human_readable:
symlink_path = create_readable_dir(entry, config.section, domain, config.output)
if not config.flat_output:
checksum_path = Path(full_output_dir) / 'MD5SUMS'