Changeset 64017a8 in sasview for sansview/perspectives/fitting


Ignore:
Timestamp:
Mar 30, 2010 7:36:49 PM (15 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:
6e93a02
Parents:
9bd6c13c
Message:

fixed the bug: Errors on theory panel when changing # of points w/ 2D plot

Location:
sansview/perspectives/fitting
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • sansview/perspectives/fitting/fitpage.py

    rd493f66 r64017a8  
    11071107            # more disables for 2D 
    11081108            if self.data.__class__.__name__ =="Data2D": 
     1109                if self.model != None: 
     1110                    self.smear_description_2d.Show(True) 
    11091111                self.smear_description_none.Hide() 
    1110                 self.smear_description_2d.Show(True) 
    11111112                self.pinhole_smearer.Disable() 
    11121113                self.slit_smearer.Disable() 
  • sansview/perspectives/fitting/fitting.py

    rc6036f5 r64017a8  
    10571057         
    10581058        # max and min taking account of the bin sizes 
    1059         theory.xmin= xmin - xstep/2 
    1060         theory.xmax= xmax + xstep/2 
    1061         theory.ymin= ymin - ystep/2 
    1062         theory.ymax= ymax + ystep/2 
     1059        theory.xmin= xmin  
     1060        theory.xmax= xmax 
     1061        theory.ymin= ymin  
     1062        theory.ymax= ymax  
    10631063        theory.group_id ="Model" 
    10641064        theory.id ="Model" 
Note: See TracChangeset for help on using the changeset viewer.