Skip to content

Instantly share code, notes, and snippets.

@albertlai431
Created May 13, 2019 20:20
Show Gist options
  • Save albertlai431/11a2c734447edc73cf6d8eb7bfef26f2 to your computer and use it in GitHub Desktop.
Save albertlai431/11a2c734447edc73cf6d8eb7bfef26f2 to your computer and use it in GitHub Desktop.
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