Changeset ca6c007 in sasmodels for Models


Ignore:
Timestamp:
Jul 24, 2014 10:10:18 AM (11 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:
099e053
Parents:
473183c
Message:

further organizing

Location:
Models
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • Models/code_capcyl.py

    r473183c rca6c007  
    77 
    88from weights import GaussianDispersion 
    9 from Models.sasmodel import card 
     9from sasmodel import card 
    1010 
    1111 
     
    3434        #create context, queue, and build program 
    3535        ctx,_queue = card() 
    36         trala = open('NR_BessJ1.cpp').read()+"\n"+open('Capcyl_Kfun.cpp').read()+"\n"+open('Kernel-CapCyl.cpp').read() 
     36        trala = open('Kernel/NR_BessJ1.cpp').read()+"\n"+open('Kernel/Capcyl_Kfun.cpp').read()+"\n"+open('Kernel/Kernel-CapCyl.cpp').read() 
    3737        src, qx, qy = set_precision(trala, qx, qy, dtype=dtype) 
    3838        self.prg = cl.Program(ctx, src).build() 
  • Models/code_coreshellcyl.py

    r473183c rca6c007  
    66 
    77from weights import GaussianDispersion 
    8 from Models.sasmodel import card 
     8from sasmodel import card 
    99 
    1010 
     
    3131        #create context, queue, and build program 
    3232        ctx,_queue = card() 
    33         src, qx, qy = set_precision(open('NR_BessJ1.cpp').read()+"\n"+open('Kernel-CoreShellCylinder.cpp').read(), qx, qy, dtype=dtype) 
     33        src, qx, qy = set_precision(open('Kernel/NR_BessJ1.cpp').read()+"\n"+open('Kernel/Kernel-CoreShellCylinder.cpp').read(), qx, qy, dtype=dtype) 
    3434        self.prg = cl.Program(ctx, src).build() 
    3535        self.qx, self.qy = qx, qy 
  • Models/code_cylinder.py

    r473183c rca6c007  
    66 
    77from weights import GaussianDispersion 
    8 from Models.sasmodel import card 
     8from sasmodel import card 
    99 
    1010 
     
    4747        #create context, queue, and build program 
    4848        ctx,_queue = card() 
    49         src, qx, qy = set_precision(open('NR_BessJ1.cpp').read()+"\n"+open('Kernel-Cylinder.cpp').read(), qx, qy, dtype=dtype) 
     49        src, qx, qy = set_precision(open('Kernel/NR_BessJ1.cpp').read()+"\n"+open('Kernel/Kernel-Cylinder.cpp').read(), qx, qy, dtype=dtype) 
    5050        self.prg = cl.Program(ctx, src).build() 
    5151        self.qx, self.qy = qx, qy 
     
    111111        #create context, queue, and build program 
    112112        ctx,_queue = card() 
    113         trala = open('NR_BessJ1.cpp').read()+"\n"+open('OneDCyl_Kfun.cpp').read()+"\n"+open('Kernel-OneDCylinder.cpp').read() 
     113        trala = open('Kernel/NR_BessJ1.cpp').read()+"\n"+open('Kernel/OneDCyl_Kfun.cpp').read()+"\n"+open('Kernel/Kernel-OneDCylinder.cpp').read() 
    114114        src, self.q = set_precision_1d(trala, q, dtype=dtype) 
    115115        self.prg = cl.Program(ctx, src).build() 
  • Models/code_ellipse.py

    r473183c rca6c007  
    66 
    77from weights import GaussianDispersion 
    8 from Models.sasmodel import card 
     8from sasmodel import card 
    99 
    1010 
     
    3232 
    3333        ctx,_queue = card() 
    34         src, qx, qy = set_precision(open('Kernel-Ellipse.cpp').read(), qx, qy, dtype=dtype) 
     34        src, qx, qy = set_precision(open('Kernel/Kernel-Ellipse.cpp').read(), qx, qy, dtype=dtype) 
    3535        self.prg = cl.Program(ctx, src).build() 
    3636        self.qx, self.qy = qx, qy 
  • Models/code_lamellar.py

    r473183c rca6c007  
    44import numpy as np 
    55import pyopencl as cl 
    6 from weights import GaussianDispersion 
     6from Models.weights import GaussianDispersion 
    77 
    88def set_precision(src, qx, qy, dtype): 
     
    3131        self.ctx = cl.create_some_context() 
    3232        self.queue = cl.CommandQueue(self.ctx) 
    33         src,qx,qy = set_precision(open('Kernel-Lamellar.cpp').read(), qx, qy, dtype=dtype) 
     33        src,qx,qy = set_precision(open('Kernel/Kernel-Lamellar.cpp').read(), qx, qy, dtype=dtype) 
    3434        self.prg = cl.Program(self.ctx, src).build() 
    3535        self.qx, self.qy = qx, qy 
  • Models/code_triaxialellipse.py

    r473183c rca6c007  
    66 
    77from weights import GaussianDispersion 
    8 from Models.sasmodel import card 
     8from sasmodel import card 
    99 
    1010 
     
    3131    def __init__(self, qx, qy, dtype='float32'): 
    3232        ctx,_queue = card() 
    33         src, qx, qy = set_precision(open('Kernel-TriaxialEllipse.cpp').read(), qx, qy, dtype=dtype) 
     33        src, qx, qy = set_precision(open('Kernel/Kernel-TriaxialEllipse.cpp').read(), qx, qy, dtype=dtype) 
    3434        self.prg = cl.Program(ctx, src).build() 
    3535        self.qx, self.qy = qx, qy 
Note: See TracChangeset for help on using the changeset viewer.