Changeset 1352c78 in sasview


Ignore:
Timestamp:
Dec 20, 2011 5:22:26 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:
7c8d3093
Parents:
4c5448c
Message:

fixed profile plot problem

Location:
sansmodels/src/sans/models
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • sansmodels/src/sans/models/ReflectivityIIModel.py

    r0145a25 r1352c78  
    2727        self.name = "ReflectivityIIModel" 
    2828        self.description=model.description 
    29         self.n_layers = multfactor 
     29        self.n_layers = int(multfactor) 
    3030        ## Define parameters 
    3131        self.params = {} 
     
    183183        """ 
    184184        # max_pts for each layers 
    185         n_sub = self.params['npts_inter'] 
     185        n_sub = int(self.params['npts_inter']) 
    186186        z = [] 
    187187        beta = [] 
    188         sub_range = floor(n_sub/2.0) 
     188        sub_range = int(floor(n_sub/2.0)) 
    189189        z.append(0) 
    190190        beta.append(self.params['sld_bottom0'])  
  • sansmodels/src/sans/models/ReflectivityModel.py

    r0145a25 r1352c78  
    2525        self.name = "ReflectivityModel" 
    2626        self.description=model.description 
    27         self.n_layers = multfactor 
     27        self.n_layers = int(multfactor) 
    2828        ## Define parameters 
    2929        self.params = {} 
     
    176176        z = [] 
    177177        beta = [] 
    178         sub_range = floor(n_sub/2.0) 
     178        sub_range = int(floor(n_sub/2.0)) 
    179179        z.append(0) 
    180180        beta.append(self.params['sld_bottom0'])  
Note: See TracChangeset for help on using the changeset viewer.