diff --git a/apstools/diffractometer.py b/apstools/diffractometer.py index 97e607731..5da7788c5 100644 --- a/apstools/diffractometer.py +++ b/apstools/diffractometer.py @@ -136,7 +136,7 @@ def forwardSolutionsTable(self, reflections, full=False): break # only show the first (default) solution return _table - def wh(self): + def wh(self, printing=True): """ report the diffractometer settings @@ -164,4 +164,8 @@ def wh(self): for item in self.real_positioners: table.addRow((item.attr_name, item.position)) - print(table) + + if printing: + print(table) + + return table