Skip to content
Browse files

Rounded NN experimental value to 2 decimals

  • Loading branch information...
1 parent 76c8044 commit d52cf9978380a5031d35f762df108eed5be3e729 @engpedrorafael engpedrorafael committed Apr 20, 2012
Showing with 4 additions and 1 deletion.
  1. +4 −1 azorange/AZutilities/evalUtilities.py
View
5 azorange/AZutilities/evalUtilities.py
@@ -109,7 +109,10 @@ def getNearestNeighbors(query, n, NNDataPath, FPPath = None, resPath = None, idx
timeStamp=str(time.time()).replace(".",'')
for fidx,nn in enumerate(TS):
ID= nn[idxID]
- expVal = nn[idxExpVal]
+ if miscUtilities.isNumber(nn[idxExpVal]):
+ expVal = str(round(float(nn[idxExpVal]),2))
+ else:
+ expVal = nn[idxExpVal]
SMILES = nn[idxSMILES]
if resPath and os.path.isdir(resPath):
imgPath = os.path.join(resPath,"NN"+str(idx)+"_"+str(fidx+1)+"_"+timeStamp+".png")

0 comments on commit d52cf99

Please sign in to comment.
Something went wrong with that request. Please try again.