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
4c644a96
Commit
4c644a96
authored
Jan 17, 2019
by
Philipp Arras
Browse files
Cosmetics
parent
0e9b31c3
Changes
1
Hide whitespace changes
Inline
Side-by-side
nifty5/operators/value_inserter.py
View file @
4c644a96
...
...
@@ -39,7 +39,10 @@ class ValueInserter(LinearOperator):
self
.
_domain
=
makeDomain
(
UnstructuredDomain
(
1
))
self
.
_target
=
DomainTuple
.
make
(
target
)
index
=
tuple
(
index
)
if
not
all
([
isinstance
(
n
,
int
)
and
n
>=
0
and
n
<
self
.
target
.
shape
[
i
]
for
i
,
n
in
enumerate
(
index
)]):
if
not
all
([
isinstance
(
n
,
int
)
and
n
>=
0
and
n
<
self
.
target
.
shape
[
i
]
for
i
,
n
in
enumerate
(
index
)
]):
raise
TypeError
self
.
_index
=
index
self
.
_capability
=
self
.
TIMES
|
self
.
ADJOINT_TIMES
...
...
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