Changeset 2d866370 in sasview


Ignore:
Timestamp:
Apr 4, 2017 10:22:00 AM (7 months ago)
Author:
Adam Washington <adam.washington@…>
Branches:
master, ESS_GUI, ESS_GUI_SasView245, costrafo411, py3, ticket-853-fit-gui-to-calc, ticket-869, ticket-887-reorg, ticket-915, ticket-947-sasmodels-docs, ticket-976, unittest-saveload
Children:
41e0a3b
Parents:
09a0be5
Message:

Switch to static methods in sesans_reader.py

The online style system politely complained about this.

File:
1 edited

Legend:

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

    r09a0be5 r2d866370  
    116116        return None 
    117117 
    118     def _unit_conversion(self, value, value_unit, default_unit): 
     118    @staticmethod 
     119    def _unit_conversion(value, value_unit, default_unit): 
    119120        """ 
    120121        Performs unit conversion on a measurement. 
     
    136137        return value, new_unit 
    137138 
    138     def _header_fetch(self, headers, key): 
     139    @staticmethod 
     140    def _header_fetch(headers, key): 
    139141        """ 
    140142        Pull the value of a unit defined header from a dict. Example:: 
     
    153155        return headers[index] 
    154156 
    155     def _fetch_unit(self, params, key): 
     157    @staticmethod 
     158    def _fetch_unit(params, key): 
    156159        """ 
    157160        Pull the unit off of a dictionary header. Example:: 
Note: See TracChangeset for help on using the changeset viewer.