Skip to content

Commit

Permalink
minor verbosity bug
Browse files Browse the repository at this point in the history
  • Loading branch information
gvarnavi committed Oct 12, 2024
1 parent 025d950 commit 85babaa
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion py4DSTEM/process/phase/direct_ptychography.py
Original file line number Diff line number Diff line change
Expand Up @@ -1284,6 +1284,8 @@ def reconstruct(
polar_parameters = {}
polar_parameters.update(kwargs)
print_summary = True
else:
print_summary = True

if not polar_parameters and hasattr(self, "_fitted_polar_parameters"):
polar_parameters = self._fitted_polar_parameters
Expand All @@ -1295,7 +1297,7 @@ def reconstruct(
)
self._set_polar_parameters(polar_parameters)

if print_summary:
if print_summary and self._verbose:
heading = "Forced aberration coefficients"
print(f"{heading:^50}")
print("-" * 50)
Expand Down

0 comments on commit 85babaa

Please sign in to comment.