Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ift
NIFTy
Commits
da95e17a
Commit
da95e17a
authored
May 16, 2020
by
Gordian Edenhofer
Browse files
multi_domain.py: Avoid python native variable name
parent
0dd7b3b2
Changes
1
Hide whitespace changes
Inline
Side-by-side
nifty6/multi_domain.py
View file @
da95e17a
...
...
@@ -37,12 +37,12 @@ class MultiDomain(object):
"""
_domainCache
=
{}
def
__init__
(
self
,
d
i
ct
,
_callingfrommake
=
False
):
def
__init__
(
self
,
dct
,
_callingfrommake
=
False
):
if
not
_callingfrommake
:
raise
NotImplementedError
(
'To create a MultiDomain call `MultiDomain.make()`.'
)
self
.
_keys
=
tuple
(
sorted
(
d
i
ct
.
keys
()))
self
.
_domains
=
tuple
(
d
i
ct
[
key
]
for
key
in
self
.
_keys
)
self
.
_keys
=
tuple
(
sorted
(
dct
.
keys
()))
self
.
_domains
=
tuple
(
dct
[
key
]
for
key
in
self
.
_keys
)
self
.
_idx
=
frozendict
({
key
:
i
for
i
,
key
in
enumerate
(
self
.
_keys
)})
@
staticmethod
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment