Changeset 5356


Ignore:
Timestamp:
Oct 24, 2022 1:45:40 PM (5 months ago)
Author:
toby
Message:

minor cell merge fmt and NIST*LATTICE build changes

Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIctrlGUI.py

    r5352 r5356  
    60586058        [['m3','m3m'],[" Unit cell: a = "],["{:.5f}"],[0]],
    60596059        [['3R','3mR'],[" a = ",u" \u03B1 = "],["{:.5f}","{:.3f}"],[0,3]],
    6060         [['3','3m1','31m','6/m','6/mmm','4/m','4/mmm'],[" a = "," c = "],
    6061              ["{:.5f}","{:.5f}"],[0,2]],
     6060        [['3','3m1','31m','6/m','6/mmm','4/m','4/mmm'],
     6061             [" a = "," c = ",u" \u03B3 = "],
     6062             ["{:.5f}","{:.5f}","{:.3f}"],[0,2,-5]],
    60626063        [['mmm'],[" a = "," b = "," c = "],["{:.5f}","{:.5f}","{:.5f}"],
    60636064            [0,1,2]],
     
    60836084            break
    60846085    for txt,fmt,indx in zip(*useGUI[1:]):
    6085         col = 1+2*indx
     6086        col = 1+2*abs(indx)
    60866087        cellrow = row
    6087         if editAllowed and indx > 2:
     6088        if editAllowed and abs(indx) > 2:
    60886089            cellrow = row + 1
    6089             col = 1+2*(indx-3)
     6090            col = 1+2*(abs(indx)-3)
    60906091        cellSizer.Add(wx.StaticText(frame,label=txt),(cellrow,col))
    6091         if editAllowed:
     6092        if editAllowed and indx >= 0:
    60926093            Fmt = (10,5)
    60936094            if '.3' in fmt: Fmt = (10,3)
     
    60976098            cellList.append(cellVal.GetId())
    60986099        else:
    6099             cellSizer.Add(wx.StaticText(frame,label=fmt.format(cell[indx])),(cellrow,col+1))
     6100            cellSizer.Add(wx.StaticText(frame,label=fmt.format(cell[abs(indx)])),(cellrow,col+1))
    61006101    #volume
    61016102    volCol = 13
  • trunk/exports/G2export_CIF.py

    r5353 r5356  
    45924592            pos=wx.DefaultPosition,style=wx.DEFAULT_DIALOG_STYLE|wx.RESIZE_BORDER)
    45934593        dlg.CenterOnParent()
    4594         import imp
    4595         imp.reload(G2G)
     4594        # import imp
     4595        # print('reloading ',G2G)
     4596        # imp.reload(G2G)
    45964597        def onChange(*args,**kwargs):
    4597             #wx.CallAfter(showMergeMag)
    45984598            wx.CallLater(100,showMergeMag)
    45994599        def showMergeMag():
  • trunk/fsource/SConstruct

    r5355 r5356  
    382382        installcmd = "copy $TARGET " + InstallLoc
    383383    else:
    384         installcmd = "cp $TARGET " + InstallLoc
     384        installcmd = "cp -p $TARGET " + InstallLoc
    385385    return [cmd, installcmd]
    386386env.Append(BUILDERS = {'nist' : Builder(generator = generate_nist)},)
     
    423423    filename = str(lib[0])
    424424
    425 # NIST*LATTICE programs
    426 for src in 'LATTIC.f','convcell.f':
    427     target = os.path.splitext(src)[0] + EXEsuffix
    428     out = env.nist(target,src)
    429     Clean(out, target)
    430     Depends(target, NISTlib) # make sure library is rebuilt if old
    431 
    432425# find modules that need to be built
    433426modlist = []
     
    439432    Depends(target, liblist) # make sure libraries are rebuilt if old
    440433    modlist.append(out[0].name)
     434
     435# NIST*LATTICE programs
     436for src in 'LATTIC.f','convcell.f':
     437    target = os.path.splitext(src)[0] + EXEsuffix
     438    out = env.nist(target,src)
     439    Clean(out, target)
     440    Depends(target, NISTlib) # make sure library is rebuilt if old   
    441441#==========================================================================================
    442442# all done with setup, show the user the options and let scons do the work
Note: See TracChangeset for help on using the changeset viewer.