Changeset 3aa7074 in sasview for guitools


Ignore:
Timestamp:
Apr 16, 2008 8:05:21 AM (16 years ago)
Author:
Gervaise Alina <gervyh@…>
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:
8e44d51
Parents:
dfca3de
Message:

fix on bug

File:
1 edited

Legend:

Unmodified
Added
Removed
  • guitools/fitDialog.py

    r831149e r3aa7074  
    219219            if self.xtrans == "log10(x)": 
    220220                y_model = self.model.run(math.log10(xmin)) 
    221  
     221                tempx.append(xmin) 
    222222            else: 
    223223                y_model = self.model.run(xminView) 
    224             tempx.append(xmin) 
    225              
     224                tempx.append(xminView) 
     225                 
    226226            if self.ytrans == "log10(y)": 
    227227                tempy.append(math.pow(10,y_model)) 
    228228            else: 
    229229                tempy.append(y_model) 
    230             #Load tempy with the value between xView min and xView max 
    231             #for j in range(len(x)):  
    232             #    if (x[j] > xminView and x[j] < xmaxView): 
    233             #        if self.xtrans == "log10(x)": 
    234             #            y_model = self.model.run(math.log10(x[j])) 
    235             #        else: 
    236             #            y_model = self.model.run(x[j]) 
    237                          
    238                          
    239             #        if self.ytrans == "log10(y)": 
    240             #            tempy.append(math.pow(10,y_model)) 
    241             #        else: 
    242             #            tempy.append(y_model) 
    243             #        tempx.append(x[j]) 
    244                      
     230                 
    245231            # load tempy with the maximum transformation 
    246232            if self.xtrans == "log10(x)": 
    247233                y_model = self.model.run(math.log10(xmax)) 
    248                 
     234                tempx.append(xmax) 
    249235            else: 
    250236                y_model = self.model.run(xmaxView) 
    251             tempx.append(xmax) 
     237                tempx.append(xmaxView) 
    252238                 
    253239            if self.ytrans == "log10(y)": 
     
    255241            else:  
    256242                tempy.append(y_model) 
     243                 
     244             
     245            print "this max",xmax 
     246            print "this view xmax", xmaxView 
    257247            # Create new data plottable with result 
    258248            self.file_data1.x =[]  
     
    262252            self.file_data1.dx=None 
    263253            self.file_data1.dy=None 
    264              
     254            print "this is the min of data1",min(self.file_data1.x ) 
     255            print "this is the max of data1",max(self.file_data1.x ) 
    265256            #Load the view with the new values 
    266257            self.file_data1.reset_view() 
Note: See TracChangeset for help on using the changeset viewer.