2121__author__ = "Autonima Development Team"
2222__description__ = "LLM-powered automated systematic review and meta-analysis"
2323
24- from .pipeline import AutonimaPipeline
25- from .config import PipelineConfig
24+ __all__ = []
2625
27- # Import retrieval module components
28- from .retrieval import BaseRetriever , PubGetRetriever
26+ # Core pipeline/config imports may rely on optional dependencies in submodules.
27+ try :
28+ from .pipeline import AutonimaPipeline
29+ from .config import PipelineConfig
30+
31+ __all__ .extend (["AutonimaPipeline" , "PipelineConfig" ])
32+ except ImportError :
33+ pass
2934
30- # Import coordinate parsing module components
31- from .coordinates import CoordinatePoint , Analysis , ParseAnalysesOutput , parse_tables , CoordinateParsingClient
35+ # Retrieval module components (optional dependency: pubget and related stack)
36+ try :
37+ from .retrieval import BaseRetriever , PubGetRetriever
3238
33- # Import LLM module components
34- from .llm .client import GenericLLMClient
39+ __all__ .extend (["BaseRetriever" , "PubGetRetriever" ])
40+ except ImportError :
41+ pass
3542
36- # Import meta-analysis module components
43+ # Coordinate parsing module components
44+ try :
45+ from .coordinates import (
46+ CoordinatePoint ,
47+ Analysis ,
48+ ParseAnalysesOutput ,
49+ parse_tables ,
50+ CoordinateParsingClient ,
51+ )
52+
53+ __all__ .extend (
54+ [
55+ "CoordinatePoint" ,
56+ "Analysis" ,
57+ "ParseAnalysesOutput" ,
58+ "parse_tables" ,
59+ "CoordinateParsingClient" ,
60+ ]
61+ )
62+ except ImportError :
63+ pass
64+
65+ # LLM client (optional dependency: openai)
66+ try :
67+ from .llm .client import GenericLLMClient
68+
69+ __all__ .append ("GenericLLMClient" )
70+ except ImportError :
71+ pass
72+
73+ # Meta-analysis module components (optional dependency: nimare)
3774try :
3875 from .meta import run_meta_analyses
76+
3977 HAS_META = True
78+ __all__ .append ("run_meta_analyses" )
4079except ImportError :
4180 HAS_META = False
42-
43- __all__ = [
44- "AutonimaPipeline" ,
45- "PipelineConfig" ,
46- "BaseRetriever" ,
47- "PubGetRetriever" ,
48- "CoordinatePoint" ,
49- "Analysis" ,
50- "ParseAnalysesOutput" ,
51- "parse_tables" ,
52- "CoordinateParsingClient" ,
53- "GenericLLMClient"
54- ]
55-
56- if HAS_META :
57- __all__ .append ("run_meta_analyses" )
0 commit comments