Maximal_independent_set() guide correction

After running pc_relate using statistics=“kin”, I follow the guide in:
to remove related individuals with a “case” preference. I manage to to filter and create pairs keyed with case/control, creating a meaningful data structure for the tie_breaker() function.
When calling maximal_indpendent_set() the TypeError: bad operand ~:struct.
The tie_breaker function needs to reference the value: l.is_case.value, and not l.is_case.

Sorry, don’t totally understand. We test that the code snippets in the docs run as part of our testing process – that code definitely runs on the inputs we use in the docs.

Could you paste the code you ran?