Changeset 2d866370 in sasview for src


Ignore:
Timestamp:
Apr 4, 2017 10:22:00 AM (8 years ago)
Author:
Adam Washington <adam.washington@…>
Branches:
master, ESS_GUI, ESS_GUI_Docs, ESS_GUI_batch_fitting, ESS_GUI_bumps_abstraction, ESS_GUI_iss1116, ESS_GUI_iss879, ESS_GUI_iss959, ESS_GUI_opencl, ESS_GUI_ordering, ESS_GUI_sync_sascalc, costrafo411, magnetic_scatt, release-4.2.2, ticket-1009, ticket-1094-headless, ticket-1242-2d-resolution, ticket-1243, ticket-1249, ticket885, 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.