File tree Expand file tree Collapse file tree 2 files changed +5
-7
lines changed Expand file tree Collapse file tree 2 files changed +5
-7
lines changed Original file line number Diff line number Diff line change @@ -480,6 +480,10 @@ def ShowVersions():
480480 print ('Warning: Python requests package not installed (required for\n ' +
481481 ' GSAS-II to access web pages or self-install binary modules)' )
482482 G2fil .NeededPackage ({'Accessing web resources' :['requests' ]})
483+ try :
484+ import pybaselines .whittaker
485+ except :
486+ G2fil .NeededPackage ({'Auto background capability' :['pybaselines' ]})
483487
484488 if not GSASIIpath .TestSPG ():
485489 path2repo = os .path .dirname (GSASIIpath .path2GSAS2 )
Original file line number Diff line number Diff line change 3232from . import GSASIIspc as G2spc
3333from . import GSASIIElem as G2elem
3434from . import GSASIImath as G2mth
35+ from . import GSASIIfiles as G2fil
3536try :
3637 if GSASIIpath .binaryPath :
3738 import pypowder as pyd
4647 from . import pydiffax as pyx
4748except ImportError :
4849 print ('pydiffax is not available for this platform' )
49- from . import GSASIIfiles as G2fil
50- try :
51- import pybaselines .whittaker
52- except :
53- G2fil .NeededPackage ({'Auto background capability' :['pybaselines' ]})
54-
55-
5650
5751# trig functions in degrees
5852tand = lambda x : math .tan (x * math .pi / 180. )
You can’t perform that action at this time.
0 commit comments