I have a dataset with two Boolean arrays.
The first boolean array indicates which data points have an error attached to them and is used to specify whether or not to turn on the error in an MCMC routine. The second array indicates whether or not each data point has a measured length.
How can I index the Boolean_error array by the Has_length array, so that I will have a list comprised of objects with Has_length == True with either Boolean_error == True or Boolean_error == False?
Here's an example of what I'm trying to do:
Boolean_error = [False True False True True False True False False False False False]
Has_length = [True True True True False True True True True True True False]
print Boolean_error[Has_length]
>>> [False True False True False True False False False False]
lists and notarrays (well, it does have arrays, but they're uncommon). Also, this is not valid Python