Changeset 346bc88 in sasmodels for sasmodels/resolution.py
- Timestamp:
- Aug 31, 2015 10:24:45 PM (9 years ago)
- Branches:
- master, core_shell_microgels, costrafo411, magnetic_model, release_v0.94, release_v0.95, ticket-1257-vesicle-product, ticket_1156, ticket_1265_superball, ticket_822_more_unit_tests
- Children:
- 3e6aaad
- Parents:
- f224873
- git-author:
- Paul Kienzle <pkienzle@…> (08/31/15 22:12:39)
- git-committer:
- Paul Kienzle <pkienzle@…> (08/31/15 22:24:45)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sasmodels/resolution.py
rf1b8c90 r346bc88 11 11 MINIMUM_RESOLUTION = 1e-8 12 12 13 class Resolution 1D(object):13 class Resolution(object): 14 14 """ 15 15 Abstract base class defining a 1D resolution function. … … 32 32 33 33 34 class Perfect1D(Resolution 1D):34 class Perfect1D(Resolution): 35 35 """ 36 36 Resolution function to use when there is no actual resolution smearing … … 45 45 46 46 47 class Pinhole1D(Resolution 1D):47 class Pinhole1D(Resolution): 48 48 r""" 49 49 Pinhole aperture with q-dependent gaussian resolution. … … 74 74 75 75 def apply(self, theory): 76 print "q calc", self.q_calc 77 print "weights", self.weight_matrix.shape 76 78 return apply_resolution_matrix(self.weight_matrix, theory) 77 79 78 80 79 class Slit1D(Resolution 1D):81 class Slit1D(Resolution): 80 82 """ 81 83 Slit aperture with a complicated resolution function.
Note: See TracChangeset
for help on using the changeset viewer.