Changeset d772f5d in sasmodels for code_capcyl.py


Ignore:
Timestamp:
Jul 23, 2014 1:25:44 PM (10 years ago)
Author:
HMP1 <helen.park@…>
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:
dbb0048
Parents:
9a9f5b5
Message:

Added 1D Fit, fixed fitting error

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code_capcyl.py

    r8a21ba3 rd772f5d  
    77from weights import GaussianDispersion 
    88from sasmodel import card 
    9 from Capcyl_Gauss import Gauss76Wt, Gauss76Z 
     9from Gauss import Gauss76Wt, Gauss76Z 
    1010 
    1111def set_precision(src, qx, qy, dtype): 
     
    4343        self.qx_b = cl.Buffer(ctx, mf.READ_ONLY | mf.COPY_HOST_PTR, hostbuf=self.qx) 
    4444        self.qy_b = cl.Buffer(ctx, mf.READ_ONLY | mf.COPY_HOST_PTR, hostbuf=self.qy) 
    45         G, Z = Gauss76Wt, Gauss76Z 
     45        G = np.ascontiguousarray(Gauss76Wt, dtype=dtype) 
     46        Z = np.ascontiguousarray(Gauss76Z, dtype=dtype) 
    4647        self.Gauss76W_b = cl.Buffer(ctx, mf.READ_ONLY | mf.COPY_HOST_PTR, hostbuf=G) 
    4748        self.Gauss76Z_b = cl.Buffer(ctx, mf.READ_ONLY | mf.COPY_HOST_PTR, hostbuf=Z) 
Note: See TracChangeset for help on using the changeset viewer.