Skip to content

Commit c987151

Browse files
committed
Require pubget
1 parent cfbc5e3 commit c987151

1 file changed

Lines changed: 1 addition & 15 deletions

File tree

autonima/retrieval/pubget.py

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,7 @@
1010
from ..models.types import Study, StudyStatus, ActivationTable
1111
from .base import BaseRetriever
1212
from ..utils import log_error_with_debug
13-
14-
try:
15-
from pubget import download_pmcids, extract_articles, extract_data_to_csv
16-
PUBGET_AVAILABLE = True
17-
except ImportError:
18-
PUBGET_AVAILABLE = False
19-
logging.warning(
20-
"pubget not installed. Full-text retrieval will be disabled."
21-
)
13+
from pubget import download_pmcids, extract_articles, extract_data_to_csv
2214

2315
logger = logging.getLogger(__name__)
2416

@@ -34,12 +26,6 @@ def __init__(self, n_jobs: int = 1):
3426
Args:
3527
n_jobs: Number of parallel jobs for processing
3628
"""
37-
if not PUBGET_AVAILABLE:
38-
raise ImportError(
39-
"pubget is not installed. Please install it with: "
40-
"pip install pubget"
41-
)
42-
4329
self.n_jobs = n_jobs
4430

4531
def retrieve(

0 commit comments

Comments
 (0)