Skip to content

BUG: join_numpy return if foreign key is < 0 #740

@MImmesberger

Description

@MImmesberger

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 working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions