Changeset e090ba90 in sasview for src/sas/sascalc/data_util/nxsunit.py
- Timestamp:
- Oct 11, 2018 11:59:57 AM (6 years ago)
- Branches:
- master, magnetic_scatt, release-4.2.2, ticket-1009, ticket-1094-headless, ticket-1242-2d-resolution, ticket-1249
- Children:
- 88d2e70
- Parents:
- 67ed543
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/sascalc/data_util/nxsunit.py
r574adc7 re090ba90 99 99 Strip '^' from unit names. 100 100 101 * WARNING * this will incorrect transform 10^3 to 103. 102 """ 103 s.update((k.replace('^',''),v) 104 for k, v in list(s.items()) 105 if '^' in k) 101 * WARNING * this will incorrectly transform 10^3 to 103. 102 """ 103 stripped = [(k.replace('^',''),v) for k, v in s.items() if '^' in k] 104 s.update(stripped) 106 105 107 106 def _build_all_units():
Note: See TracChangeset
for help on using the changeset viewer.