Changeset a5b8253 in sasview for src/sas/sascalc


Ignore:
Timestamp:
Nov 20, 2016 3:47:39 AM (8 years ago)
Author:
jhbakker
Branches:
master, ESS_GUI, ESS_GUI_Docs, ESS_GUI_batch_fitting, ESS_GUI_bumps_abstraction, ESS_GUI_iss1116, ESS_GUI_iss879, ESS_GUI_iss959, ESS_GUI_opencl, ESS_GUI_ordering, ESS_GUI_sync_sascalc, costrafo411, magnetic_scatt, release-4.1.1, release-4.1.2, release-4.2.2, ticket-1009, ticket-1094-headless, ticket-1242-2d-resolution, ticket-1243, ticket-1249, ticket885, unittest-saveload
Children:
632e2e8
Parents:
a01af35
Message:

some small fixes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/sas/sascalc/data_util/qsmearing.py

    ra01af35 ra5b8253  
    1313import logging 
    1414import sys 
    15 import time 
    1615from sasmodels import sesans 
    1716 
    1817import numpy as np  # type: ignore 
    1918from numpy import pi, exp  # type: ignore 
    20 #from scipy.special import j as besselj 
     19#from scipy.special import jv as besselj 
    2120 
    2221from sasmodels.resolution import Slit1D, Pinhole1D, SESANS1D 
     
    175174    width = data.dx if data.dx is not None else 0 
    176175    return PySmear(Pinhole1D(q, width), model) 
    177  
    178 def sesans_smear(data, model=None): 
    179     #This should be calculated characteristic length scale 
    180     #Probably not a data prameter either 
    181     #Need function to calculate this based on model 
    182     #Here assume a number 
    183     Rmax = 1000000 
    184     q_calc = sesans.make_q(data.sample.zacceptance, Rmax) 
    185     SElength=Converter(data._xunit)(data.x, "A") 
    186     #return sesans.HankelTransform(q_calc, SElength) 
    187     #Old return statement, running through the smearer 
    188     #return PySmear(SESANS1D(data,q_calc),model) 
Note: See TracChangeset for help on using the changeset viewer.