Ignore:
Timestamp:
May 18, 2021 8:19:22 AM (5 months ago)
Author:
vondreele
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIconstrGUI.py

    r4905 r4906  
    9393        Sets the focus.
    9494        '''
     95        if grid.GetTable().GetValue(row,col) not in [True,False]:
     96            return
    9597        self.startValue = int(grid.GetTable().GetValue(row, col))
    9698        self.saveVals = row, col, grid
     
    22922294                XZ = copy.copy(XYZ)
    22932295                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)
    22952297                resid_min = resd
    22962298                normal = a,1,b
    22972299                YZ = copy.copy(XYZ)
    22982300                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)
    23002302                if resid_min > resd:
    23012303                    resid_min = resd
     
    23032305                XY = copy.copy(XYZ)
    23042306                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)
    23062308                if resid_min > resd:
    23072309                    resid_min = resd
Note: See TracChangeset for help on using the changeset viewer.