Changeset 4906 for trunk


Ignore:
Timestamp:
May 18, 2021 8:19:22 AM (2 years ago)
Author:
vondreele
Message:
 
Location:
trunk
Files:
2 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
  • trunk/imports/G2phase_xyz.py

    r4872 r4906  
    5252        'Read a PDF file using :meth:`ReadPDBPhase`'
    5353        self.errors = 'Error opening file'
    54         fp = open(filename, 'Ur')
     54        fp = open(filename, 'r')
    5555        self.Phase = {}
    5656        natom = int(fp.readline().strip())
Note: See TracChangeset for help on using the changeset viewer.