Changeset 4213 for trunk/GSASIImath.py


Ignore:
Timestamp:
Dec 19, 2019 11:04:03 PM (2 years ago)
Author:
toby
Message:

multiple small changes to allow docs build under 3.x

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIImath.py

    r4185 r4213  
    4444atand = lambda x: 180.*np.arctan(x)/np.pi
    4545atan2d = lambda y,x: 180.*np.arctan2(y,x)/np.pi
    46 twopi = 2.0*np.pi
    47 twopisq = 2.0*np.pi**2
     46try:  # fails on doc build
     47    twopi = 2.0*np.pi
     48    twopisq = 2.0*np.pi**2
     49    _double_min = np.finfo(float).min
     50    _double_max = np.finfo(float).max
     51except TypeError:
     52    pass
    4853nxs = np.newaxis
    4954   
     
    41074112#__all__ = ['anneal']
    41084113
    4109 _double_min = numpy.finfo(float).min
    4110 _double_max = numpy.finfo(float).max
    41114114class base_schedule(object):
    41124115    def __init__(self):
Note: See TracChangeset for help on using the changeset viewer.