Changeset 5f3164c in sasview for calculatorview/src


Ignore:
Timestamp:
Sep 19, 2011 4:11:40 PM (13 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:
7400883
Parents:
8fe5a50
Message:

updated the gravitational effect based on new calculation and fixed lines of detector limits

File:
1 edited

Legend:

Unmodified
Added
Removed
  • calculatorview/src/sans/perspectives/calculator/resolution_calculator_panel.py

    r1c153e9 r5f3164c  
    739739        qy_min = []  
    740740        qy_max = []  
    741          
     741        # possible max qrange 
     742        self.resolution.qxmin_limit = 0 
     743        self.resolution.qxmax_limit = 0 
     744        self.resolution.qymin_limit = 0 
     745        self.resolution.qymax_limit = 0 
     746        # q min and max of the detector 
    742747        try: 
    743748            # Get all the values at set to compute 
     
    912917            detector_qy_min = self.resolution.qymin_limit 
    913918            detector_qy_max = self.resolution.qymax_limit 
    914          
     919 
    915920        # Draw zero axis lines 
    916921        if qy_min < 0 and qy_max >= 0: 
     
    924929        y_min = fabs(detector_qy_min - qy_min) / (qy_max - qy_min) 
    925930        y_max = fabs(detector_qy_max - qy_min) / (qy_max - qy_min) 
    926          
     931 
    927932        # Draw Detector outline 
    928933        if detector_qy_min >= qy_min: 
Note: See TracChangeset for help on using the changeset viewer.