Changeset 0ae0f9a in sasmodels for sasmodels/resolution.py


Ignore:
Timestamp:
Oct 8, 2016 1:30:56 PM (8 years ago)
Author:
jhbakker
Branches:
master, core_shell_microgels, costrafo411, magnetic_model, ticket-1257-vesicle-product, ticket_1156, ticket_1265_superball, ticket_822_more_unit_tests
Children:
eb8a82e
Parents:
0444c02 (diff), 630cdd4 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge branch 'ajj_sesans' into Jurrian1D

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sasmodels/resolution.py

    r0444c02 r0ae0f9a  
    5555        return theory 
    5656 
     57 
     58class SESANS1D(Resolution): 
     59 
     60    def __init__(self, data, q_calc): 
     61        self.data = data 
     62        self.q_calc = q_calc 
     63 
     64    def apply(self, theory): 
     65        return sesans.transform(self.data, self.q_calc, theory, None, None) 
    5766 
    5867class Pinhole1D(Resolution): 
     
    306315            weights[i, :] = (in_x + abs_x) * np.diff(q_edges) / (2*h) 
    307316        else: 
    308             for k in range(-n_height, h_height+1): 
     317            for k in range(-n_height, n_height+1): 
    309318                weights[i, :] += _q_perp_weights(q_edges, qi+k*h/n_height, w) 
    310319            weights[i, :] /= 2*n_height + 1 
Note: See TracChangeset for help on using the changeset viewer.