Changeset 4505
- Timestamp:
- Jun 21, 2020 8:49:20 AM (3 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/GSASIIconstrGUI.py
r4503 r4505 3170 3170 def ChangeCell(event): 3171 3171 r,c = event.GetRow(),event.GetCol() 3172 if r >= 0 and (0 <= c < 3): 3172 if c == 0: 3173 rbData['atNames'][r] = resGrid.GetCellValue(r,c) 3174 if r >= 0 and (2 <= c <= 4): 3173 3175 try: 3174 3176 val = float(resGrid.GetCellValue(r,c)) 3175 rbData['rbXYZ'][r][c ] = val3177 rbData['rbXYZ'][r][c-2] = val 3176 3178 except ValueError: 3177 3179 pass -
trunk/GSASIIphsGUI.py
r4504 r4505 10060 10060 atoms that should be matched. 10061 10061 ''' 10062 UsedIds = []10063 for i in data['RBModels']:10064 for j in data['RBModels'][i]:10065 UsedIds += j['Ids']10066 10062 rbType = data['testRBObj']['rbType'] 10067 10063 rbObj = data['testRBObj']['rbObj'] … … 10077 10073 # categorize atoms by type, omitting any that are already assigned 10078 10074 # in a rigid body 10079 atmTypes = [None if atomData[i][-1] in UsedIds10075 atmTypes = [None if atomData[i][-1] in rbUsedIds 10080 10076 else atomData[i][ct] 10081 10077 for i in range(len(atomData))] … … 10217 10213 for i,l in enumerate(RigidBodies.atomsTable.data): 10218 10214 if l[4] == 'Create new': 10215 l[1:4] = -1,'?',-1 10219 10216 rbAssignments[i] = None 10220 10217 selDict[i] = None … … 10468 10465 RigidBodies.atomsGrid = G2G.GSGrid(RigidBodies) 10469 10466 10470 labelsChoices = [' '] + [a[0] for a in data['Atoms']] 10467 labelsChoices = [' '] + [a[0] for a in data['Atoms'] 10468 if a[-1] not in rbUsedIds] 10471 10469 choiceeditor = wg.GridCellChoiceEditor( 10472 10470 labelsChoices+['Create new'], False) … … 10523 10521 # start of OnRBAssign(event) 10524 10522 rbAssignments = {} 10523 rbUsedIds = [] # Ids of atoms in current phase used inside RBs 10524 for i in data['RBModels']: 10525 for j in data['RBModels'][i]: 10526 rbUsedIds += j['Ids'] 10525 10527 G2frame.GetStatusBar().SetStatusText('',1) 10526 10528 RBData = G2frame.GPXtree.GetItemPyData(
Note: See TracChangeset
for help on using the changeset viewer.