INNER CODE UNIT · Python
_gen_missing_api
lululxvi/deepxde · deepxde/backend/__init__.py:27
def _gen_missing_api(api, mod_name):
def _missing_api(*args, **kwargs):
raise ImportError(
'API "%s" is not supported by backend "%s".'
" You can switch to other backends by setting"
" the DDE_BACKEND environment." % (api, mod_name)
)
return _missing_api
def backend_message(backend_name):
"""Show message about backend.
Args:
backend_name: which backend used
"""
msg = f"Using backend: {backend_name}\nOther supported backends: "