Changeset 4906
- Timestamp:
- May 18, 2021 8:19:22 AM (2 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/GSASIIconstrGUI.py
r4905 r4906 93 93 Sets the focus. 94 94 ''' 95 if grid.GetTable().GetValue(row,col) not in [True,False]: 96 return 95 97 self.startValue = int(grid.GetTable().GetValue(row, col)) 96 98 self.saveVals = row, col, grid … … 2292 2294 XZ = copy.copy(XYZ) 2293 2295 XZ[:,1] = 1 2294 (a,d,b), resd, rank, sing = nl.lstsq(XZ, -Y )2296 (a,d,b), resd, rank, sing = nl.lstsq(XZ, -Y,rcond=-1) 2295 2297 resid_min = resd 2296 2298 normal = a,1,b 2297 2299 YZ = copy.copy(XYZ) 2298 2300 YZ[:,0] = 1 2299 (d,a,b), resd, rank, sing = nl.lstsq(YZ, -X )2301 (d,a,b), resd, rank, sing = nl.lstsq(YZ, -X,rcond=-1) 2300 2302 if resid_min > resd: 2301 2303 resid_min = resd … … 2303 2305 XY = copy.copy(XYZ) 2304 2306 XY[:,2] = 1 2305 (a,b,d), resd, rank, sing = nl.lstsq(XY, -Z )2307 (a,b,d), resd, rank, sing = nl.lstsq(XY, -Z,rcond=-1) 2306 2308 if resid_min > resd: 2307 2309 resid_min = resd -
trunk/imports/G2phase_xyz.py
r4872 r4906 52 52 'Read a PDF file using :meth:`ReadPDBPhase`' 53 53 self.errors = 'Error opening file' 54 fp = open(filename, ' Ur')54 fp = open(filename, 'r') 55 55 self.Phase = {} 56 56 natom = int(fp.readline().strip())
Note: See TracChangeset
for help on using the changeset viewer.