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
bfa6b7ab
Commit
bfa6b7ab
authored
Apr 30, 2013
by
Marco Selig
Browse files
minor corrections; documentation updated.
parent
18d2fafe
Changes
2
Hide whitespace changes
Inline
Side-by-side
nifty_core.py
View file @
bfa6b7ab
...
...
@@ -9612,7 +9612,7 @@ class projection_operator(operator):
x : valid field
band : int, *optional*
Projection band whereon to project. (default: None)
bandsup:
list
of integers, *optional*
bandsup:
{integer, list/array
of integers
}
, *optional*
List of projection bands whereon to project and which to sum
up. The `band` keyword is prefered over `bandsup`.
(default: None)
...
...
@@ -9631,8 +9631,11 @@ class projection_operator(operator):
return
Px
elif
(
bandsup
is
not
None
):
bandsup
=
[
int
(
bb
)
for
bb
in
bandsup
if
-
1
<
bb
<
self
.
bands
()]
if
(
bandsup
==
[]):
if
(
np
.
isscalar
(
bandsup
)):
bandsup
=
np
.
arange
(
int
(
bandsup
),
dtype
=
np
.
int
)
else
:
bandsup
=
np
.
array
(
bandsup
,
dtype
=
np
.
int
)
if
(
np
.
any
(
bandsup
>
self
.
bands
()
-
1
))
or
(
np
.
any
(
bandsup
<
0
)):
raise
ValueError
(
about
.
_errors
.
cstring
(
"ERROR: invalid input."
))
Px
=
field
(
self
.
domain
,
val
=
None
,
target
=
x
.
target
)
for
bb
in
bandsup
:
...
...
nifty_power.py
View file @
bfa6b7ab
...
...
@@ -41,7 +41,7 @@
"""
from
__future__
import
division
from
scipy.interpolate
import
interp1d
as
ip
##
from
scipy.interpolate
import
interp1d
as
ip
##
conflicts with sphinx's autodoc
#import numpy as np
from
nifty.nifty_core
import
*
import
smoothing
as
gs
...
...
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