File tree Expand file tree Collapse file tree 1 file changed +14
-25
lines changed
Expand file tree Collapse file tree 1 file changed +14
-25
lines changed Original file line number Diff line number Diff line change 11from .base import BaseThinLayer
22
3- # Only import and show warnings if the modules are explicitly requested
4- ThinLayerPysces = None
5- ThinLayerCopasi = None
6-
7-
83def _get_pysces ():
94 global ThinLayerPysces
10- if ThinLayerPysces is None :
11- try :
12- from .psyces import ThinLayerPysces as _ThinLayerPysces
13-
14- ThinLayerPysces = _ThinLayerPysces
15- except ImportError as e :
16- raise ImportError (
17- f"ThinLayerPysces is not available because of missing dependencies: { e } "
18- )
19- return ThinLayerPysces
5+ try :
6+ from .psyces import ThinLayerPysces as _ThinLayerPysces
7+ except ImportError as e :
8+ raise ImportError (
9+ f"ThinLayerPysces is not available because of missing dependencies: { e } "
10+ )
11+ return _ThinLayerPysces
2012
2113
2214def _get_copasi ():
2315 global ThinLayerCopasi
24- if ThinLayerCopasi is None :
25- try :
26- from .basico import ThinLayerCopasi as _ThinLayerCopasi
27-
28- ThinLayerCopasi = _ThinLayerCopasi
29- except ImportError as e :
30- raise ImportError (
31- f"ThinLayerCopasi is not available because of missing dependencies: { e } "
32- )
33- return ThinLayerCopasi
16+ try :
17+ from .basico import ThinLayerCopasi as _ThinLayerCopasi
18+ except ImportError as e :
19+ raise ImportError (
20+ f"ThinLayerCopasi is not available because of missing dependencies: { e } "
21+ )
22+ return _ThinLayerCopasi
3423
3524
3625def __getattr__ (name ):
You can’t perform that action at this time.
0 commit comments