Skip to content

Commit

Permalink
log touchup
Browse files Browse the repository at this point in the history
  • Loading branch information
tjlane committed Nov 20, 2024
1 parent e141fca commit f499725
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion meteor/scripts/compute_difference_map.py
Original file line number Diff line number Diff line change
Expand Up @@ -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}",
)
Expand Down
2 changes: 1 addition & 1 deletion meteor/tv.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
)

Expand Down

0 comments on commit f499725

Please sign in to comment.