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
c7beff09
Commit
c7beff09
authored
Nov 14, 2017
by
Martin Reinecke
Browse files
fixes
parent
1083dadf
Pipeline
#21545
passed with stage
in 4 minutes and 54 seconds
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
nifty/low_level_library.py
View file @
c7beff09
...
...
@@ -48,7 +48,7 @@ if not special_hartley:
def
_fill_array
(
tmp
,
res
,
axes
):
if
axes
is
None
:
axes
=
range
(
a
.
ndim
)
axes
=
range
(
tmp
.
ndim
)
lastaxis
=
axes
[
-
1
]
ntmplast
=
tmp
.
shape
[
lastaxis
]
slice1
=
[
slice
(
None
)]
*
lastaxis
+
[
slice
(
0
,
ntmplast
)]
...
...
@@ -60,7 +60,7 @@ def hartley(a, axes=None):
# Check if the axes provided are valid given the shape
if
axes
is
not
None
and
\
not
all
(
axis
<
len
(
a
.
shape
)
for
axis
in
axes
):
raise
ValueError
(
"Provided axes do
es
not match array shape"
)
raise
ValueError
(
"Provided axes do not match array shape"
)
if
issubclass
(
a
.
dtype
.
type
,
np
.
complexfloating
):
raise
TypeError
(
"Hartley tansform requires real-valued arrays."
)
...
...
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