Skip to content

Commit

Permalink
MNT #397
Browse files Browse the repository at this point in the history
  • Loading branch information
prjemian committed Aug 7, 2020
1 parent 3e9bd92 commit 757d6e8
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions apstools/diffractometer.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,18 +153,17 @@ def wh(self, printing=True):
table = pyRestTable.Table()
table.labels = "term value".split()
table.addRow(("diffractometer", self.name))
table.addRow(("mode", self.calc.engine.mode))
table.addRow(("wavelength (angstrom)", self.calc.wavelength))
# TODO: Alpha angle of incidence with sample surface
# TODO: Beta angle of reflection with sample surface
# TODO: Azimuth ??
# TODO: Omega ??

for item in "h k l".split():
table.addRow((item, getattr(self, item).position))
for k, v in self.calc.pseudo_axes.items():
table.addRow((k, v))

for item in self.real_positioners:
table.addRow((item.attr_name, item.position))

# TODO: show constraints?

if printing:
print(table)

Expand Down

0 comments on commit 757d6e8

Please sign in to comment.