Changeset 19637b1 in sasview for calculator/resolution_calculator.py


Ignore:
Timestamp:
Jan 20, 2011 9:34:56 AM (14 years ago)
Author:
Jae Cho <jhjcho@…>
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:
943cacb
Parents:
c91c29e
Message:

fixed a small bug and removed unnecessary raise

File:
1 edited

Legend:

Unmodified
Added
Removed
  • calculator/resolution_calculator.py

    r3be3a80 r19637b1  
    387387        if switch.lower() == 'off': 
    388388            return 0 
     389        if self.mass == 0.0: 
     390            return 0 
    389391        # check the singular point 
    390392        if d_distance == 0 or comp == 'x': 
     
    851853        :return delta y: the beam center drop in cm 
    852854        """ 
     855        # Check if mass == 0 (X-ray).  
     856        if self.mass == 0: 
     857            return 0 
    853858        # Covert unit from A to cm 
    854859        unit_cm = 1e-08 
Note: See TracChangeset for help on using the changeset viewer.