Ignore:
Timestamp:
Nov 22, 2016 1:08:48 PM (5 years ago)
Author:
vondreele
Message:

cleanup of all GSASII main routines - remove unused variables, dead code, etc.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIImapvars.py

    r2519 r2546  
    210210
    211211import numpy as np
     212import sys
    212213import GSASIIpath
    213214GSASIIpath.SetVersionNumber("$Revision$")
     
    238239    fixedDict = {} # a dictionary containing the fixed values corresponding to defined parameter equations
    239240    consNum = 0 # number of the next constraint to be created
    240     fixedVarList = []
    241241
    242242def VarKeys(constr):
     
    816816    if len(printlist) == 0: return
    817817    s1 = ''
     818    s2 = ''
     819    s3 = ''
    818820    print >>pFile,130*'-'
    819821    print >>pFile,"Variables generated by constraints"
     
    845847    for varlist,mapvars,invmultarr in zip(dependentParmList,indParmList,invarrayList):
    846848        #if invmultarr is None: continue # probably not needed
    847         try:
    848             valuelist = [parmDict[var] for var in mapvars]
    849         except KeyError:
    850             continue
     849#        try:
     850#            valuelist = [parmDict[var] for var in mapvars]
     851#        except KeyError:
     852#            continue
    851853        # get the v-covar matrix for independent parameters
    852854        vcov = np.zeros((len(mapvars),len(mapvars)))
     
    11141116    the first m rows are not linearly independent
    11151117    '''
    1116     n = len(collist)
    11171118    for i in range(m):
    11181119        if np.allclose(arr[i,i],0):
Note: See TracChangeset for help on using the changeset viewer.