Commit 31960d21 authored by Martin Reinecke's avatar Martin Reinecke
Browse files

cosmetics

parent 1255a779
......@@ -55,7 +55,8 @@ class MultiField(object):
if domain is None:
for dd in dict.values():
if not isinstance(dd.domain, DomainTuple):
raise TypeError('Values of dictionary need to be Fields defined on DomainTuples.')
raise TypeError('Values of dictionary need to be Fields '
'defined on DomainTuples.')
domain = MultiDomain.make({key: v._domain
for key, v in dict.items()})
res = tuple(dict[key] if key in dict else Field(dom, 0)
......
Markdown is supported
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