Skip to content

Commit

Permalink
last cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
tjlane committed Oct 28, 2024
1 parent 33ec00c commit 569f939
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion meteor/iterative.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ def _complex_derivative_from_iterative_tv( # noqa: PLR0913
)
if verbose:
log.info(
f" iter {num_iterations:03d}", # noqa: G004
f" iteration {num_iterations:04d}", # noqa: G004
phase_change=round(phase_change, 4),
negentropy=round(tv_metadata.optimal_negentropy, 4),
tv_weight=tv_metadata.optimal_tv_weight,
Expand Down
2 changes: 1 addition & 1 deletion meteor/scripts/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,7 @@ def write_combined_metadata(
*, filename: Path, it_tv_metadata: pd.DataFrame, final_tv_metadata: TvDenoiseResult
) -> None:
combined_metadata = {
"iterative_tv": it_tv_metadata.to_json(),
"iterative_tv": it_tv_metadata.to_json(orient="records", indent=4),
"final_tv_pass": final_tv_metadata.json(),
}
with filename.open("w") as f:
Expand Down
2 changes: 1 addition & 1 deletion meteor/scripts/compute_iterative_tv_map.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ def main(command_line_arguments: list[str] | None = None) -> None:
log.info(
"Optimal TV weight found",
weight=final_tv_metadata.optimal_tv_weight,
final_negentropy=f"{final_tv_metadata.optimal_negentropy:.2e}",
final_negentropy=round(final_tv_metadata.optimal_negentropy, 4),
)

log.info("Writing output.", file=str(args.mtzout))
Expand Down

0 comments on commit 569f939

Please sign in to comment.