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.
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.
pynominate/pynominate/nokken_poole.py
Lines 61 to 66 in 6a5b8a5
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.