Commit 8ce9f5cd authored by Heller, William T.'s avatar Heller, William T.
Browse files

Merge branch 'divide_error' into 'master'

Replace output.py

See merge request !17
parents 9b187c0b 28f5d367
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -174,7 +174,11 @@ def outputSetRes(conf, res):
    for i in range(0,parms):
        ave[i] = np.average(vals[i])
        std[i] = np.std(vals[i])
    
    #this is to address a bad division that does not crash the code
    with np.errstate(divide='ignore', invalid='ignore'):
        cor = np.corrcoef(vals,y=None,rowvar=True)
        
    #this gets rid of junk values when parameters are fixed
    for i in range(0,parms):
        for j in range(0,parms):