Ignore:
Timestamp:
Jun 22, 2018 12:52:36 PM (6 years ago)
Author:
krzywon
Branches:
master, magnetic_scatt, release-4.2.2, ticket-1009, ticket-1094-headless, ticket-1242-2d-resolution, ticket-1243, ticket-1249, unittest-saveload
Children:
058f6c3
Parents:
c7634fd
Message:

Create a universal unit converter for all data loaders. refs #1111

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/sas/sascalc/dataloader/readers/cansas_reader_HDF5.py

    r18af6d2 r3bab401  
    632632        if unit is None: 
    633633            unit = h5attr(value, u'unit') 
    634         # Convert the unit formats 
    635         if unit == "1/A": 
    636             unit = "A^{-1}" 
    637         elif unit == "1/cm": 
    638             unit = "cm^{-1}" 
    639634        return unit 
Note: See TracChangeset for help on using the changeset viewer.