Commit 00390d87 authored by Martin Reinecke's avatar Martin Reinecke

fixes

parent d3755058
......@@ -82,12 +82,14 @@ run_getting_started_1:
script:
- python demos/getting_started_1.py
- python3 demos/getting_started_1.py
- mpiexec -n 2 --bind-to none python3 demos/getting_started_1.py 2> /dev/null
run_getting_started_2:
stage: demo_runs
script:
- python demos/getting_started_2.py
- python3 demos/getting_started_2.py
- mpiexec -n 2 --bind-to none python3 demos/getting_started_2.py 2> /dev/null
run_getting_started_3:
stage: demo_runs
......
......@@ -15,7 +15,7 @@ if __name__ == '__main__':
position_space = ift.RGSpace([128, 128])
# Setting up an amplitude model
A, amplitude_internals = ift.library.make_amplitude_model(
A, amplitude_internals = ift.make_amplitude_model(
position_space, 16, 1, 10, -4., 1, 0., 1.)
# Building the model for a correlated signal
......@@ -32,13 +32,13 @@ if __name__ == '__main__':
correlated_field_h = Amp * xi
correlated_field = ht(correlated_field_h)
# alternatively to the block above one can do:
# correlated_field,_ = ift.library.make_correlated_field(position_space, A)
# correlated_field,_ = ift.make_correlated_field(position_space, A)
# apply some nonlinearity
signal = ift.PointwisePositiveTanh(correlated_field)
# Building the Line of Sight response
LOS_starts, LOS_ends = get_random_LOS(100)
R = ift.library.LOSResponse(position_space, starts=LOS_starts,
R = ift.LOSResponse(position_space, starts=LOS_starts,
ends=LOS_ends)
# build signal response model and model likelihood
signal_response = R(signal)
......
......@@ -74,7 +74,6 @@ from .minimization.energy_sum import EnergySum
from .sugar import *
from .plotting.plot import plot
from .library import *
from .library.amplitude_model import make_amplitude_model
from .library.apply_data import ApplyData
from .library.gaussian_energy import GaussianEnergy
......
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