Changeset 72f719b in sasview


Ignore:
Timestamp:
Sep 11, 2009 10:01:47 AM (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:
f9bf661
Parents:
b1f7ec6
Message:

updated corresponding to the changes in P*S model function

Location:
sansview/perspectives/fitting
Files:
2 edited

Legend:

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

    rf8395e3 r72f719b  
    982982        if model ==None: 
    983983            return 
    984         if hasattr(model ,"model2"): 
    985              
    986             class_name= model.model2.__class__ 
    987             name= model.model2.name 
     984        if hasattr(model ,"s_model"): 
     985             
     986            class_name= model.s_model.__class__ 
     987            name= model.s_model.name 
    988988            flag= name != "NoStructure" 
    989989            if flag and (class_name in self.model_list_box["Structure Factors"]): 
     
    10001000                        break 
    10011001                     
    1002         if hasattr(model ,"model1"): 
    1003             class_name = model.model1.__class__ 
    1004             name = model.model1.name 
     1002        if hasattr(model ,"p_model"): 
     1003            class_name = model.p_model.__class__ 
     1004            name = model.p_model.name 
    10051005            self.formfactorbox.Clear() 
    10061006             
  • sansview/perspectives/fitting/models.py

    r5eb9154 r72f719b  
    148148        from sans.models.FlexibleCylinderModel import FlexibleCylinderModel 
    149149        self.shape_list.append(FlexibleCylinderModel) 
    150         self.multiplication_factor.append(FlexibleCylinderModel) 
     150 
    151151         
    152152        from sans.models.StackedDisksModel import StackedDisksModel 
     
    156156        from sans.models.ParallelepipedModel import ParallelepipedModel 
    157157        self.shape_list.append(ParallelepipedModel) 
     158        self.multiplication_factor.append(ParallelepipedModel) 
    158159         
    159160        from sans.models.EllipticalCylinderModel import EllipticalCylinderModel 
    160161        self.shape_list.append(EllipticalCylinderModel) 
    161          
     162        self.multiplication_factor.append(EllipticalCylinderModel) 
     163                 
    162164        from sans.models.EllipsoidModel import EllipsoidModel 
    163165        self.shape_list.append(EllipsoidModel) 
Note: See TracChangeset for help on using the changeset viewer.