Skip to content

Duplicate keys in newvars dictionary in the preprocess_puf function in puf.py #405

@martinholmer

Description

@martinholmer

When running "make lint" I get among other warnings this one:

tmd/datasets/puf.py:133:14: W0109: Duplicate key 'early_withdrawal_penalty' in dictionary (duplicate-key)

Looking more closely, this looks like a bug:

(base) datasets> grep -n early_withdrawal_penalty puf.py
145:        "early_withdrawal_penalty": puf.E03400,
189:        "early_withdrawal_penalty": puf.E09900,
219:    "early_withdrawal_penalty",

The key-value pairs on lines 145 and 189 are in the same dictionary

@donboyd5, which E value is the correct one for early_withdrawal_penalty?

Metadata

Metadata

Assignees

No one assigned

    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