Skip to content

Commit

Permalink
ENH #397 printing is optional
Browse files Browse the repository at this point in the history
  • Loading branch information
prjemian committed Aug 7, 2020
1 parent 3db7e04 commit 3e9bd92
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions apstools/diffractometer.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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

0 comments on commit 3e9bd92

Please sign in to comment.