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
On Thursday, 7th July from 1 to 3 pm there will be a maintenance with a short downtime of GitLab.
Open sidebar
Neel Shah
NIFTy
Commits
adbfb3b7
Commit
adbfb3b7
authored
Jan 30, 2018
by
Martin Reinecke
Browse files
cosmetics
parent
41d3585e
Changes
1
Hide whitespace changes
Inline
Side-by-side
nifty4/library/nonlinear_power_curvature.py
View file @
adbfb3b7
...
...
@@ -28,5 +28,5 @@ def NonlinearPowerCurvature(tau, ht, Instrument, nonlinearity, Projection, N,
Instrument
,
nonlinearity
,
ht
,
Projection
,
tau
,
xi_sample
)
op
=
LinearizedResponse
.
adjoint
*
N
.
inverse
*
LinearizedResponse
result
=
op
if
result
is
None
else
result
+
op
result
=
result
*
(
1.
/
len
(
xi_sample_list
))
+
T
result
=
result
*
(
1.
/
len
(
xi_sample_list
))
+
T
return
InversionEnabler
(
result
,
inverter
)
Write
Preview
Markdown
is supported
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