7 print(
"trying from " + mod +
" import " + cls)
9 my_module = importlib.import_module(mod)
10 return getattr(my_module, cls)
12 except ImportError
as err:
16 "Error importing %s, it will be simulated due to: %s" %
17 (cls, err.msg), Warning)
21 def __init__(self, *args, **kwargs):
22 raise RuntimeError(
"Can not initilize the simulation with fake objects")
26 except AttributeError
as err:
30 "Error importing %s, it will be simulated due to: %s" %
31 (cls, err.args), Warning)
35 def __init__(self, *args, **kwargs):
36 raise RuntimeError(
"Can not initialize the simulation with fake objects")
58 Rtc_cacao_FFF =
smart_import(
"sutraWrap",
"Rtc_cacao_FFF", silent=
True)
59 Rtc_cacao_UFF =
smart_import(
"sutraWrap",
"Rtc_cacao_UFF", silent=
True)
60 Rtc_cacao_FFU =
smart_import(
"sutraWrap",
"Rtc_cacao_FFU", silent=
True)
61 Rtc_cacao_UFU =
smart_import(
"sutraWrap",
"Rtc_cacao_UFU", silent=
True)
62 Rtc_cacao_FHF =
smart_import(
"sutraWrap",
"Rtc_cacao_FHF", silent=
True)
63 Rtc_cacao_UHF =
smart_import(
"sutraWrap",
"Rtc_cacao_UHF", silent=
True)
64 Rtc_cacao_FHU =
smart_import(
"sutraWrap",
"Rtc_cacao_FHU", silent=
True)
65 Rtc_cacao_UHU =
smart_import(
"sutraWrap",
"Rtc_cacao_UHU", silent=
True)
70 Target_brahma =
smart_import(
"sutraWrap",
"Target_brahma", silent=
True)