Ignore:
Timestamp:
Mar 24, 2021 1:06:49 PM (7 months ago)
Author:
vondreele
Message:

fixes to monoclinic A,C,I centered cell indexing (still need to do P)
fix bug in bond restraints & add enhancement to atom requests for bonds, angles & planes.
Remove 'U' from open in G2phase.py - deprecated

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIrestrGUI.py

    r4864 r4865  
    242242        Lists = {'origin':[],'target':[]}
    243243        for listName in ['origin','target']:
    244             dlg = wx.MultiChoiceDialog(G2frame,'Bond restraint '+listName+' for '+General['Name'],
     244            dlg = G2G.G2MultiChoiceDialog(G2frame,'Bond restraint '+listName+' for '+General['Name'],
    245245                    'Select bond restraint '+listName+' atoms',Names)
    246246            if dlg.ShowModal() == wx.ID_OK:
     
    276276                for Tid,Ttype,Tcoord in targAtoms:
    277277                    if 'macro' in General['Type']:
    278                         result = [Tcoord,1,[0,0,0],[]]
     278                        result = [[Tcoord,1,[0,0,0],[]],]
    279279                    else:
    280280                        result = G2spc.GenAtom(Tcoord,SGData,False,Move=False)
     
    369369        Lists = {'A-atom':[],'B-atom':[],'C-atom':[]}
    370370        for listName in ['A-atom','B-atom']:
    371             dlg = wx.MultiChoiceDialog(G2frame,'Select '+listName+' for angle A-B-C for '+General['Name']                                                                           ,
     371            dlg = G2G.G2MultiChoiceDialog(G2frame,'Select '+listName+' for angle A-B-C for '+General['Name']                                                                           ,
    372372                    'Select angle restraint '+listName,Names)
    373373            if dlg.ShowModal() == wx.ID_OK:
     
    521521    def AddPlaneRestraint(restrData):
    522522        ids = []
    523         dlg = wx.MultiChoiceDialog(G2frame,'Select 4 or more atoms for plane in '+General['Name'],
     523        dlg = G2G.G2MultiChoiceDialog(G2frame,'Select 4 or more atoms for plane in '+General['Name'],
    524524                'Select 4+ atoms',Names[iBeg:])
    525525        if dlg.ShowModal() == wx.ID_OK:
     
    812812        ids = []
    813813        factors = []
    814         dlg = wx.MultiChoiceDialog(G2frame,'Select atoms for chemical restraint in '+General['Name'],
     814        dlg = G2G.G2MultiChoiceDialog(G2frame,'Select atoms for chemical restraint in '+General['Name'],
    815815                'Select atoms',Names)
    816816        if dlg.ShowModal() == wx.ID_OK:
Note: See TracChangeset for help on using the changeset viewer.