Advertisement
Guest User

Untitled

a guest
May 23rd, 2019
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. newerOut = []
  2. #Removing all the null values
  3. for i in outData:
  4. if type(i) == int and i>0:
  5. newerOut += [i]
  6.  
  7. #If all the values are null, ignore the data!
  8. if len(newerOut) == 0:
  9. continue
  10.  
  11. #Determining the intensity by averaging the data
  12. intensity = sum(newerOut)/len(newerOut)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement