INNER CODE UNIT · Python
config_download
kblin/ncbi-genome-download · ncbi_genome_download/core.py:189
def config_download(config):
"""Run the actual download from NCBI with parameters in a config object.
Parameters
----------
config: NgdConfig
A configuration object with the download settings
Returns
-------
int
success code
"""
logger = logging.getLogger("ncbi-genome-download")
try:
download_candidates = select_candidates(config)