Changeset 346bc88 in sasmodels for sasmodels/resolution.py


Ignore:
Timestamp:
Aug 31, 2015 10:24:45 PM (9 years ago)
Author:
Paul Kienzle <pkienzle@…>
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)
Message:

Add 2D resolution smearing. Split BumpsModel? into Experiment and Model and fix up examples.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sasmodels/resolution.py

    rf1b8c90 r346bc88  
    1111MINIMUM_RESOLUTION = 1e-8 
    1212 
    13 class Resolution1D(object): 
     13class Resolution(object): 
    1414    """ 
    1515    Abstract base class defining a 1D resolution function. 
     
    3232 
    3333 
    34 class Perfect1D(Resolution1D): 
     34class Perfect1D(Resolution): 
    3535    """ 
    3636    Resolution function to use when there is no actual resolution smearing 
     
    4545 
    4646 
    47 class Pinhole1D(Resolution1D): 
     47class Pinhole1D(Resolution): 
    4848    r""" 
    4949    Pinhole aperture with q-dependent gaussian resolution. 
     
    7474 
    7575    def apply(self, theory): 
     76        print "q calc", self.q_calc 
     77        print "weights", self.weight_matrix.shape 
    7678        return apply_resolution_matrix(self.weight_matrix, theory) 
    7779 
    7880 
    79 class Slit1D(Resolution1D): 
     81class Slit1D(Resolution): 
    8082    """ 
    8183    Slit aperture with a complicated resolution function. 
Note: See TracChangeset for help on using the changeset viewer.