Commit f103534f authored by Martin Reinecke's avatar Martin Reinecke
Browse files

fixes and license

parent 537ef3cf
Pipeline #72235 failed with stages
in 26 minutes and 37 seconds
......@@ -80,7 +80,7 @@ if __name__ == '__main__':
A = pd(a)
# Define sky operator
sky = ift.exp(HT(ift.makeOp(A)))
sky = HT(ift.makeOp(A)).ptw("exp")
M = ift.DiagonalOperator(exposure)
GR = ift.GeometryRemover(position_space)
......
......@@ -85,7 +85,7 @@ if __name__ == '__main__':
A = cfmaker.amplitude
# Apply a nonlinearity
signal = ift.sigmoid(correlated_field)
signal = correlated_field.ptw("sigmoid")
# Build the line-of-sight response and define signal response
LOS_starts, LOS_ends = random_los(100) if mode == 0 else radial_los(100)
......@@ -149,7 +149,7 @@ if __name__ == '__main__':
filename_res = filename.format("results")
plot = ift.Plot()
plot.add(sc.mean, title="Posterior Mean")
plot.add(ift.sqrt(sc.var), title="Posterior Standard Deviation")
plot.add(sc.var.ptw("sqrt"), title="Posterior Standard Deviation")
powers = [A.force(s + KL.position) for s in KL.samples]
plot.add(
......
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
# Copyright(C) 2020 Max-Planck-Society
# Author: Martin Reinecke
#
# NIFTy is being developed at the Max-Planck-Institut fuer Astrophysik.
import numpy as np
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment