Changeset 3164 for trunk/GSASIImath.py


Ignore:
Timestamp:
Nov 28, 2017 11:32:31 AM (4 years ago)
Author:
vondreele
Message:

fix neutron resonant scattering factor calcs. - neglected constant term
put tyr/except around import pypowder in G2pwd & G2math - to allow testing

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIImath.py

    r3157 r3164  
    3131import numpy.fft as fft
    3232import scipy.optimize as so
    33 import pypowder as pwd
     33try:
     34    import pypowder as pyd
     35except ImportError:
     36    print ('pypowder is not available - profile calcs. not allowed')
    3437
    3538sind = lambda x: np.sin(x*np.pi/180.)
Note: See TracChangeset for help on using the changeset viewer.