File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1010from ..models .types import Study , StudyStatus , ActivationTable
1111from .base import BaseRetriever
1212from ..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
2315logger = 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 (
You can’t perform that action at this time.
0 commit comments