Changeset 6868151 in sasmodels
- Timestamp:
- Feb 28, 2018 12:32:14 PM (7 years ago)
- 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
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
explore/realspace.py
r4f6f9431 r6868151 211 211 values[abs(points[:, 2]) > self.length/(self.length + 2*self.thick_face)] = self.value_face 212 212 # 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) 215 215 values[radius>1] = self.value_rim 216 216 return values, self._adjust(self._scale*points)
Note: See TracChangeset
for help on using the changeset viewer.