Changeset e1ace4d in sasmodels


Ignore:
Timestamp:
Nov 25, 2015 9:25:28 AM (8 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:
3a45c2c
Parents:
7f7f99f
Message:

long doubles not supported in every version of numpy

Location:
sasmodels
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • sasmodels/compare.py

    r5edfe12 re1ace4d  
    254254 
    255255    # modelling accuracy is determined by dtype and cutoff 
    256     dtype = ('longdouble' if '-longdouble' in opts 
     256    dtype = ('longdouble' if '-quad' in opts 
    257257             else 'double' if '-double' in opts 
    258258             else 'single') 
     
    379379 
    380380    -plot*/-noplot plots or suppress the plot of the model 
    381     -single*/-double/-longdouble uses double precision for comparison 
     381    -single*/-double/-quad use single/double/quad precision for comparison 
    382382    -lowq*/-midq/-highq/-exq use q values up to 0.05, 0.2, 1.0, 10.0 
    383383    -Nq=128 sets the number of Q points in the data set 
  • sasmodels/generate.py

    r5edfe12 re1ace4d  
    206206C_KERNEL_TEMPLATE_PATH = joinpath(dirname(__file__), 'kernel_template.c') 
    207207 
    208 F128 = np.dtype('float128') 
     208F32 = np.dtype('float32') 
    209209F64 = np.dtype('float64') 
    210 F32 = np.dtype('float32') 
     210try:  # CRUFT: older numpy does not support float128 
     211    F128 = np.dtype('float128') 
     212except TypeError: 
     213    F128 = None 
     214 
    211215 
    212216# Scale and background, which are parameters common to every form factor 
Note: See TracChangeset for help on using the changeset viewer.