Created
May 13, 2019 20:20
-
-
Save albertlai431/11a2c734447edc73cf6d8eb7bfef26f2 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
newerOut = [] | |
#Removing all the null values | |
for i in outData: | |
if type(i) == int and i>0: | |
newerOut += [i] | |
#If all the values are null, ignore the data! | |
if len(newerOut) == 0: | |
continue | |
#Determining the intensity by averaging the data | |
intensity = sum(newerOut)/len(newerOut) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment