Changeset 3409
- Timestamp:
- May 29, 2018 8:51:36 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/GSASIIconstrGUI.py
r3406 r3409 1255 1255 Opr *= -1 1256 1256 XOpr = np.inner(Opr,invTrans) 1257 for ix,name in enumerate(xnames): 1257 # for ix,name in enumerate(xnames): 1258 for ix in list(set(CSX[0])): 1259 if not ix: 1260 continue 1261 name = xnames[ix-1] 1258 1262 IndpCon = [1.0,G2obj.G2VarObj('%d::%s:%s'%(npId,name,iat))] 1259 1263 DepCons = [] 1260 for iop,opval in enumerate(XOpr[ix ]):1261 if opval and CSX[0][ix]:1264 for iop,opval in enumerate(XOpr[ix-1]): 1265 if opval: 1262 1266 DepCons.append([opval,G2obj.G2VarObj('%d::%s:%d'%(opId,xnames[iop],ia))]) 1263 1267 if len(DepCons) == 1: … … 1271 1275 DepCons = [1.0,G2obj.G2VarObj('%d::%s:%d'%(opId,name,ia))] 1272 1276 constraints['Phase'].append([IndpCon,DepCons,None,None,'e']) 1273 for iu,Uid in enumerate(Uids): 1274 if not CSU[0][iu]: 1277 # for iu,Uid in enumerate(Uids): 1278 for iu in list(set(CSU[0])): 1279 if not iu: 1275 1280 continue 1281 Uid = Uids[iu-1] 1276 1282 IndpCon = [1.0,G2obj.G2VarObj('%d::%s:%s'%(npId,Uid[2],ia))] 1277 1283 DepCons = []
Note: See TracChangeset
for help on using the changeset viewer.