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
879c7be9
Commit
879c7be9
authored
Oct 06, 2016
by
theos
Committed by
csongor
Oct 25, 2016
Browse files
Fixed exceptions in FFTOperator.
parent
79682608
Changes
1
Hide whitespace changes
Inline
Side-by-side
nifty/operators/fft_operator/fft_operator.py
View file @
879c7be9
...
...
@@ -59,14 +59,14 @@ class FFTOperator(LinearOperator):
forward_class
=
self
.
transformation_dictionary
[
(
self
.
domain
[
0
].
__class__
,
self
.
target
[
0
].
__class__
)]
except
KeyError
:
raise
Typ
eError
(
raise
Valu
eError
(
"No forward transformation for domain-target pair "
"found."
)
try
:
backward_class
=
self
.
transformation_dictionary
[
(
self
.
target
[
0
].
__class__
,
self
.
domain
[
0
].
__class__
)]
except
KeyError
:
raise
Typ
eError
(
raise
Valu
eError
(
"No backward transformation for domain-target pair "
"found."
)
...
...
@@ -156,13 +156,13 @@ class FFTOperator(LinearOperator):
try
:
codomain_class
=
cls
.
default_codomain_dictionary
[
domain_class
]
except
KeyError
:
raise
Typ
eError
(
"
u
nknown domain"
)
raise
Valu
eError
(
"
U
nknown domain"
)
try
:
transform_class
=
cls
.
transformation_dictionary
[(
domain_class
,
codomain_class
)]
except
KeyError
:
raise
Typ
eError
(
raise
Valu
eError
(
"No transformation for domain-codomain pair found."
)
return
transform_class
.
get_codomain
(
domain
)
Write
Preview
Supports
Markdown
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