Commit ad889e3e authored by Philipp Arras's avatar Philipp Arras

Temporary fix for complex sampling

parent fdbeb104
Pipeline #74706 passed with stages
in 20 minutes and 34 seconds
......@@ -11,7 +11,7 @@
# 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) 2013-2019 Max-Planck-Society
# Copyright(C) 2013-2020 Max-Planck-Society
#
# NIFTy is being developed at the Max-Planck-Institut fuer Astrophysik.
......@@ -72,7 +72,7 @@ class SamplingEnabler(EndomorphicOperator):
b = self._op.draw_sample(dtype)
energy = QuadraticEnergy(0*b, self._op, b)
else:
s = self._prior.draw_sample(dtype, from_inverse=True)
s = self._prior.draw_sample(np.float64, from_inverse=True)
sp = self._prior(s)
nj = self._likelihood.draw_sample(dtype)
energy = QuadraticEnergy(s, self._op, sp + nj,
......
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