- 
                Notifications
    You must be signed in to change notification settings 
- Fork 31
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
In the Unterhaltsvorschuss module, we use the join_numpy function to determine whether the parent that receives Kindergeld for a specific child is a single parent:
def parent_alleinerz(
    p_id_kindergeld_empf: np.ndarray[int],
    p_id: np.ndarray[int],
    alleinerz: np.ndarray[bool],
):
    return join_numpy(p_id_kindergeld_empf, p_id, alleinerz)This returns True if p_id_kindergeld_empf is not determined, i.e. set to -1. True might be a bad default in this case.
Proposed solution
Allow for a default in the join_numpy function that is returned if the foreign key is not determined.
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working