Skip to content

Commit

Permalink
DOC #86 reST syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
prjemian committed Jan 5, 2021
1 parent 5016c74 commit 6a2548b
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions docs/source/diffract.rst
Original file line number Diff line number Diff line change
Expand Up @@ -89,17 +89,17 @@ turn writes the ``.calc.wavelength`` value. Likewise, when

.. tip:: How to set energy, offset, and units

To change energy, offset, & units, do it in this order:
To change energy, offset, & units, do it in this order:

1. set units and offset first
1. finally, set energy
* First, set units and offset
* Finally, set energy

EXAMPLE::
Example for a ``e4cv`` diffractometer::

fourc.energy_units.put("eV")
fourc.energy_offset.put(1.5)
fourc.energy.put(8000)
# now, fourc.calc.energy = 8.0015 keV
e4cv.energy_units.put("eV")
e4cv.energy_offset.put(1.5)
e4cv.energy.put(8000)
# now, e4cv.calc.energy = 8.0015 keV


Engineering Units
Expand Down

0 comments on commit 6a2548b

Please sign in to comment.