Changeset d772f5d in sasmodels for code_capcyl.py
- Timestamp:
- Jul 23, 2014 1:25:44 PM (10 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:
- dbb0048
- Parents:
- 9a9f5b5
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code_capcyl.py
r8a21ba3 rd772f5d 7 7 from weights import GaussianDispersion 8 8 from sasmodel import card 9 from Capcyl_Gauss import Gauss76Wt, Gauss76Z9 from Gauss import Gauss76Wt, Gauss76Z 10 10 11 11 def set_precision(src, qx, qy, dtype): … … 43 43 self.qx_b = cl.Buffer(ctx, mf.READ_ONLY | mf.COPY_HOST_PTR, hostbuf=self.qx) 44 44 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) 46 47 self.Gauss76W_b = cl.Buffer(ctx, mf.READ_ONLY | mf.COPY_HOST_PTR, hostbuf=G) 47 48 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.