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
4abb98f1
Commit
4abb98f1
authored
Aug 16, 2018
by
Martin Reinecke
Browse files
bug fix
parent
fda8024c
Changes
1
Hide whitespace changes
Inline
Side-by-side
nifty5/operators/regridding_operator.py
View file @
4abb98f1
...
...
@@ -58,7 +58,7 @@ class RegriddingOperator(LinearOperator):
for
d
in
range
(
ndim
):
tmp
=
np
.
arange
(
new_shape
[
d
])
*
(
newdist
[
d
]
/
dom
.
distances
[
d
])
self
.
_bindex
[
d
]
=
np
.
minimum
(
dom
.
shape
[
d
]
-
2
,
tmp
.
astype
(
np
.
int
))
self
.
_frac
=
tmp
-
self
.
_bindex
[
d
]
self
.
_frac
[
d
]
=
tmp
-
self
.
_bindex
[
d
]
def
apply
(
self
,
x
,
mode
):
self
.
_check_input
(
x
,
mode
)
...
...
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