diff --git a/meteor/scripts/compute_difference_map.py b/meteor/scripts/compute_difference_map.py index d631289..a22858d 100644 --- a/meteor/scripts/compute_difference_map.py +++ b/meteor/scripts/compute_difference_map.py @@ -92,7 +92,7 @@ def denoise_diffmap_according_to_mode( log.info( "Optimal TV weight found", - weight=metadata.optimal_tv_weight, + weight=f"{metadata.optimal_tv_weight:.2e}", initial_negentropy=f"{metadata.initial_negentropy:.2e}", final_negentropy=f"{metadata.optimal_negentropy:.2e}", ) diff --git a/meteor/tv.py b/meteor/tv.py index 89c954d..a1f7e74 100644 --- a/meteor/tv.py +++ b/meteor/tv.py @@ -184,7 +184,7 @@ def negentropy_objective(tv_weight: float) -> float: if maximizer.argument_optimum > TV_MAX_WEIGHT_EXPECTED: log.warning( "TV regularization weight much larger than expected, something probably went wrong", - weight=maximizer.argument_optimum, + weight=f"{maximizer.argument_optimum:.2f}", limit=TV_MAX_WEIGHT_EXPECTED, )