From 85babaaa75a7299b08a327083aa50cfd3dcdd879 Mon Sep 17 00:00:00 2001 From: gvarnavi Date: Sat, 12 Oct 2024 14:55:36 -0700 Subject: [PATCH] minor verbosity bug --- py4DSTEM/process/phase/direct_ptychography.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/py4DSTEM/process/phase/direct_ptychography.py b/py4DSTEM/process/phase/direct_ptychography.py index f2b3eb316..fc74571e4 100644 --- a/py4DSTEM/process/phase/direct_ptychography.py +++ b/py4DSTEM/process/phase/direct_ptychography.py @@ -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 @@ -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)