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
52e58aeb
Commit
52e58aeb
authored
Dec 05, 2019
by
Martin Reinecke
Browse files
remove unnecessary copy
parent
7b97a739
Pipeline
#64982
passed with stages
in 8 minutes and 43 seconds
Changes
2
Pipelines
1
Show whitespace changes
Inline
Side-by-side
nifty6/operators/field_zero_padder.py
View file @
52e58aeb
...
...
@@ -110,5 +110,5 @@ class FieldZeroPadder(LinearOperator):
xnew
=
v
[
idx
+
(
slice
(
0
,
tgtshp
[
d
]),)]
curshp
[
d
]
=
xnew
.
shape
[
d
]
v
=
xnew
.
copy
()
v
=
xnew
return
Field
(
self
.
_tgt
(
mode
),
v
)
nifty6/operators/regridding_operator.py
View file @
52e58aeb
...
...
@@ -91,5 +91,5 @@ class RegriddingOperator(LinearOperator):
xnew
+=
v
[
idx
+
(
self
.
_bindex
[
d
-
d0
]
+
1
,)]
*
wgt
curshp
[
d
]
=
xnew
.
shape
[
d
]
v
=
xnew
.
copy
()
v
=
xnew
return
Field
(
self
.
_tgt
(
mode
),
xnew
)
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