Ignore:
Timestamp:
Apr 27, 2012 9:22:40 AM (12 years ago)
Author:
Mathieu Doucet <doucetm@…>
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.1.1, release-4.1.2, release-4.2.2, release_4.0.1, ticket-1009, ticket-1094-headless, ticket-1242-2d-resolution, ticket-1243, ticket-1249, ticket885, unittest-saveload
Children:
10bfeb3
Parents:
34f3ad0
Message:

make pylint happier

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sanscalculator/src/sans/calculator/kiessig_calculator.py

    rf93b6a1e r8a621ac  
    11""" 
    22This module is a small tool to allow user to quickly 
    3 determine the size value in real space  from the  
     3determine the size value in real space  from the 
    44fringe width in q space. 
    55""" 
    66from math import pi, fabs 
    77_DQ_DEFAULT = 0.05 
     8 
     9 
    810class KiessigThicknessCalculator(object): 
    911    """ 
     
    1315         
    1416        # dq value 
    15         self.deltaq = _DQ_DEFAULT  
     17        self.deltaq = _DQ_DEFAULT 
    1618        # thickenss value 
    1719        self.thickness = None 
     
    2628        """ 
    2729        # set dq 
    28         self.deltaq  = dq 
     30        self.deltaq = dq 
    2931         
    3032    def get_deltaq(self): 
     
    3335        """ 
    3436        # return dq 
    35         return self.deltaq  
     37        return self.deltaq 
    3638 
    3739    def compute_thickness(self): 
     
    5153        else: 
    5254            # calculate thickness 
    53             thickness = 2*pi/fabs(dq)  
    54             # return thickness value       
     55            thickness = 2*pi/fabs(dq) 
     56            # return thickness value 
    5557            return thickness 
    5658   
    57     def get_thickness_unit(self):  
     59    def get_thickness_unit(self): 
    5860        """ 
    5961        :return: the thickness unit. 
     
    6163        # unit of thickness 
    6264        return self.thickness_unit 
    63  
    64  
Note: See TracChangeset for help on using the changeset viewer.