Changeset 6868151 in sasmodels for explore/realspace.py


Ignore:
Timestamp:
Feb 28, 2018 10:32:14 AM (7 years ago)
Author:
Paul Kienzle <pkienzle@…>
Branches:
master, core_shell_microgels, magnetic_model, ticket-1257-vesicle-product, ticket_1156, ticket_1265_superball, ticket_822_more_unit_tests
Children:
362a66f
Parents:
4f6f9431
Message:

realspace: fix sampling for cscyl rim

File:
1 edited

Legend:

Unmodified
Added
Removed
  • explore/realspace.py

    r4f6f9431 r6868151  
    211211        values[abs(points[:, 2]) > self.length/(self.length + 2*self.thick_face)] = self.value_face 
    212212        # finally set value to rim value if outside the core ellipse 
    213         radius = (points[:, 0]**2*(1+(self.thick_rim/self.ra)**2) 
    214                   + points[:, 1]**2*(1+(self.thick_rim/self.rb)**2)) 
     213        radius = (points[:, 0]**2*((self.ra + self.thick_rim)/self.ra)**2 
     214                  + points[:, 1]**2*((self.rb + self.thick_rim)/self.rb)**2) 
    215215        values[radius>1] = self.value_rim 
    216216        return values, self._adjust(self._scale*points) 
Note: See TracChangeset for help on using the changeset viewer.