autoprotocol/autoprotocol-python

WellGroup.wells_with() value comparison

opensean opened this issue · 0 comments

def wells_with(self, prop, val=None):

Hello,

I was attempting to use the WellGroup.wells_with() function to filter some wells and it wasn't behaving as I expected. I noticed the function is doing the comparison of the properties values to the input by object reference instead of value. Is this the desired behavior?

instead of this:

if prop in w.properties and w.properties[prop] is val

should it be this:
if prop in w.properties and w.properties[prop] == val

thank you