From 38dd82e0e015ea0c970e42f51e3afced79e8c316 Mon Sep 17 00:00:00 2001 From: mikerobeson Date: Mon, 9 Sep 2024 16:39:20 -0500 Subject: [PATCH] remove tuple parenthesis from get_ids lines --- rescript/ncbi.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rescript/ncbi.py b/rescript/ncbi.py index fd9ae66..258aeba 100644 --- a/rescript/ncbi.py +++ b/rescript/ncbi.py @@ -82,7 +82,7 @@ def get_ncbi_data( raise ValueError('Query or accession_ids must be supplied') if api_key: try: - (api_key,) = api_key.get_ids() + api_key, = api_key.get_ids() _entrez_params['api_key'] = api_key global _entrez_delay _entrez_delay = 0.1 @@ -111,7 +111,7 @@ def get_ncbi_data_protein( raise ValueError('Query or accession_ids must be supplied') if api_key: try: - (api_key,) = api_key.get_ids() + api_key, = api_key.get_ids() _entrez_params['api_key'] = api_key global _entrez_delay _entrez_delay = 0.1