Skip to content

Nokken-Poole allows for missing icpsr key when getting start idpts #1

@lukesonnet

Description

@lukesonnet

The following lines allow for start values for icpsrs that don't have ideal points in the payload. However, this should not be handled by pynominate but by whatever is generating the payload for pynominate.

dat['start'] = [
(
str(x['icpsr']) in payload['idpt']
and payload['idpt'][str(x['icpsr'])]
) or [0.0, 0.0]

I'm going to remove these lines so that it matches nominate.py, which will throw a key error if it can't find the right icpsr.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions