Skip to content
GitLab
Menu
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
5f6a0612
Commit
5f6a0612
authored
Jan 04, 2018
by
Martin Reinecke
Browse files
fix type of exception
parent
87f27e6c
Changes
2
Hide whitespace changes
Inline
Side-by-side
nifty/field.py
View file @
5f6a0612
...
...
@@ -451,7 +451,7 @@ class Field(object):
tval
=
getattr
(
self
.
val
,
op
)(
other
)
return
self
if
tval
is
self
.
val
else
Field
(
self
.
domain
,
tval
)
raise
NotImplemented
Error
raise
Type
Error
def
__add__
(
self
,
other
):
return
self
.
_binary_helper
(
other
,
op
=
'__add__'
)
...
...
nifty/operators/linear_operator.py
View file @
5f6a0612
...
...
@@ -102,7 +102,7 @@ class LinearOperator(with_metaclass(
return
DiagonalOperator
(
thing
)
if
np
.
isscalar
(
thing
):
return
ScalingOperator
(
thing
,
dom
)
raise
NotImplemented
Error
raise
Type
Error
def
__mul__
(
self
,
other
):
from
.chain_operator
import
ChainOperator
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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