Changeset 327 for trunk/GSASIIElem.py


Ignore:
Timestamp:
Jul 1, 2011 12:10:28 PM (10 years ago)
Author:
vondreele
Message:

fix to path name for atomdata.dat
fix to texture display - can't have colorbars!
put in bit to show #threads used

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIElem.py

    r291 r327  
    3434    ElS = El.upper()
    3535    ElS = ElS.rjust(2)
    36     filename = os.path.join(sys.path[1],'atmdata.dat')
     36    filename = os.path.join(os.path.split(sys.argv[0])[0],'atmdata.dat')
    3737    try:
    3838        FFdata = open(filename,'Ur')
     
    8484    else:
    8585        ElS = El.upper()[:1].rjust(2)
    86     filename = os.path.join(sys.path[1],'atmdata.dat')
     86    filename = os.path.join(os.path.split(sys.argv[0])[0],'atmdata.dat')
    8787    try:
    8888        FFdata = open(filename,'Ur')
     
    131131    ElS = El.upper()
    132132    ElS = ElS.ljust(2)
    133     filename = os.path.join(sys.path[1],'Xsect.dat')
     133    filename = os.path.join(os.path.split(sys.argv[0])[0],'Xsect.dat')
    134134    try:
    135135        xsec = open(filename,'Ur')
     
    206206    ElS = El.upper()
    207207    ElS = ElS.rjust(2)
    208     filename = os.path.join(sys.path[1],'atmdata.dat')
     208    filename = os.path.join(os.path.split(sys.argv[0])[0],'atmdata.dat')
    209209    try:
    210210        FFdata = open(filename,'Ur')
Note: See TracChangeset for help on using the changeset viewer.