Commit 5f133b64 authored by Philipp Arras's avatar Philipp Arras
Browse files

Merge branch 'add_useful_error' into 'NIFTy_4'

Add error message to MultiDomains

See merge request ift/NIFTy!267
parents 918c2443 72ede95a
Pipeline #35009 passed with stages
in 9 minutes and 46 seconds
......@@ -49,7 +49,7 @@ class MultiDomain(frozendict):
def __init__(self, domain, _callingfrommake=False):
if not _callingfrommake:
raise NotImplementedError
raise NotImplementedError('To create a MultiDomain call `MultiDomain.make()`.')
super(MultiDomain, self).__init__(domain)
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment