Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement