Commit c04cdc28 authored by Theo Steininger's avatar Theo Steininger

Bug fixes.

parent 437bc335
......@@ -108,8 +108,8 @@ class MagneticFieldFactory(Loggable, object):
for k, v in new_mapping.items():
if k in self._variable_to_parameter_mappings:
key = str(k)
value = [np.float(v[1]), np.float(v[2]), np.float(v[3])]
self._variable_to_parameter_mappings.update((key, value))
value = [np.float(v[0]), np.float(v[1])]
self._variable_to_parameter_mappings.update({key: value})
self.logger.debug("Updated variable_to_parameter_mapping %s "
"to %s" % (key, str(value)))
......
......@@ -152,7 +152,7 @@ class Pipeline(Loggable, object):
# the worst possible likelihood value
if np.any(cube_content > 1.) or np.any(cube_content < 0.):
self.logger.info('Cube %s requested. Returned most negative '
'possible number.')
'possible number.' % cube_content)
return np.nan_to_num(-np.inf)
if rank != 0:
......
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