Commit db291103 authored by Theo Steininger's avatar Theo Steininger

Added more logging.

parent 491b5cb1
......@@ -46,10 +46,11 @@ class EnsembleLikelihood(Likelihood):
obs_mean = observable.ensemble_mean().val.get_full_data()
u_val = obs_val - obs_mean
self.logger.debug(('obs_val', obs_val))
self.logger.debug(('obs_mean', obs_mean))
# compute quantities for OAS estimator
mu = np.vdot(u_val, u_val)/k/n
self.logger.debug("mu: %f" % mu)
self.logger.debug(("mu", mu))
alpha = (np.einsum(u_val, [0, 1], u_val, [2, 1])**2).sum()
alpha /= k**2
......
......@@ -129,6 +129,8 @@ class Hammurapy(Observer):
# know that the distribution strategy is the same for the
# randam samples and the magnetic field itself
random_seed = magnetic_field.random_seed.data[local_ensemble_index]
self.logger.debug("Local ensemble index %i uses random seed %i" %
(local_ensemble_index, random_seed))
custom_parameters += [['./MagneticField/Random', 'seed',
random_seed]]
......
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