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
ccec27cf
Commit
ccec27cf
authored
Jun 23, 2017
by
Theo Steininger
Browse files
Small fix in Figure2D.
parent
e6576692
Pipeline
#13983
passed with stages
in 11 minutes and 10 seconds
Changes
2
Pipelines
1
Show whitespace changes
Inline
Side-by-side
nifty/operators/smoothing_operator/direct_smoothing_operator.py
View file @
ccec27cf
...
...
@@ -53,7 +53,7 @@ class DirectSmoothingOperator(SmoothingOperator):
wgt
=
[]
expfac
=
1.
/
(
2.
*
sigma
*
sigma
)
for
i
in
range
(
x
.
size
):
if
nval
[
i
]
>
0
:
if
nval
[
i
]
>
0
:
t
=
x
[
ibegin
[
i
]:
ibegin
[
i
]
+
nval
[
i
]]
-
x
[
i
]
t
=
np
.
exp
(
-
t
*
t
*
expfac
)
t
*=
1.
/
np
.
sum
(
t
)
...
...
nifty/plotting/figures/figure_2D.py
View file @
ccec27cf
...
...
@@ -25,10 +25,6 @@ class Figure2D(FigureFromPlot):
xaxis
=
False
if
(
xaxis
is
None
)
else
xaxis
yaxis
=
False
if
(
yaxis
is
None
)
else
yaxis
else
:
width
=
None
height
=
None
super
(
Figure2D
,
self
).
__init__
(
plots
,
title
,
width
,
height
)
self
.
xaxis
=
xaxis
self
.
yaxis
=
yaxis
...
...
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