Changeset 3e1a859 in sasview


Ignore:
Timestamp:
Feb 24, 2009 3:34:41 PM (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:
1fc7411
Parents:
08895c5
Message:

allowing to fit model 2D with model2D only not apply on model1D fitted with model 1D

File:
1 edited

Legend:

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

    r08895c5 r3e1a859  
    104104        except: 
    105105            name = 'Fit' 
    106         
    107         if self.fit_page_name != name and self.draw_model_name !=name: 
     106        flag2=self.draw_model_name !=name 
     107        flag= ((self.draw_model_name ==name) and (data.__class__.__name__ is "Data2D")) 
     108        #if self.fit_page_name != name and self.draw_model_name !=name: 
     109        if self.fit_page_name != name and flag : 
    108110            #self.about_page.Disable() 
    109111            from fitpage1D import FitPage1D 
Note: See TracChangeset for help on using the changeset viewer.