Changeset 1122 for trunk/bindings/python/nxs/unit.py
- Timestamp:
- 25/10/08 02:55:50 (4 years ago)
- File:
-
- 1 edited
-
trunk/bindings/python/nxs/unit.py (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/bindings/python/nxs/unit.py
r1121 r1122 13 13 in the NeXus definition files. 14 14 15 Unlike other units packages, such as that in DANSE, this package does16 not carry the units along with the value, but merely provides a conversion 17 function fortransforming values.15 Unlike other units modules, this module does not carry the units along 16 with the value, but merely provides a conversion function for 17 transforming values. 18 18 19 Usage example: 19 Usage example:: 20 20 21 21 import nxs.unit … … 23 23 v = u(3000,'m') # Convert the value 3000 mm into meters 24 24 25 NeXus example: 25 NeXus example:: 26 26 27 27 # Load sample orientation in radians regardless of how it is stored.
Note: See TracChangeset
for help on using the changeset viewer.
