-
Notifications
You must be signed in to change notification settings - Fork 38
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot convert non-finite values to integer #104
Comments
Running the same repository on Windows causes the program to break earlier with a different error message:
|
Does 'NoneType' refer to blanks in the seed. In our seed processing, we always file blanks with negative numbers. Does that help? (happy to provide a full seed processing example if that is helpful) Example: remove blanks from the household table tooclean up NA fieldshh$HINCP[is.na(hh$HINCP)] <- -8 |
Such service! And so quick! So does this mean the seed table can have no NA fields in any column? Or only in the fields we are grabbing? |
Looking are our current seed input (after being processed), it looks like we have lots of NAs, so I'm thinking only used fields need to be populated. Again, happy to provide any examples of inputs or processing steps in side emails as would be helpful. |
Hi @gregmacfarlane , I looked at your seed_households.csv. Looks like you have empty households in there (meaning NP==0). Empty households with no persons must be excluded. |
Given that most people will be building their seed data from PUMS, do you have a script that converts and cleans PUMS data into the format you are using? Alex suggested above that he has such a script, but I'm wondering if we can just put it straight into the documentation. The documentation doesn't say, for example, that you have to filter out zero-person households rather than the program just knowing to skip over them. |
This addresses the documentation needs arising from ActivitySim#104
This addresses the documentation needs arising from #104 Co-authored-by: Ben Stabler <bstabler@users.noreply.github.com>
* Package updates (#109) * ActivitySim 0.9.2; Pandas 1.0 * Freeze ortools package below 7.5 * Add info about zero-person households (#106) This addresses the documentation needs arising from #104 * Fixes (#110) * ActivitySim 0.9.2; Pandas 1.0 * Freeze ortools package below 7.5 * fix issue #103 * fix issue #102 * Update setup.py (#112) Co-authored-by: Blake <brosenthalpdx@gmail.com> Co-authored-by: Greg Macfarlane <gregmacfarlane@gmail.com>
* Package updates (#109) * ActivitySim 0.9.2; Pandas 1.0 * Freeze ortools package below 7.5 * Add info about zero-person households (#106) This addresses the documentation needs arising from #104 Co-authored-by: Ben Stabler <bstabler@users.noreply.github.com> * Fixes (#110) * ActivitySim 0.9.2; Pandas 1.0 * Freeze ortools package below 7.5 * fix issue #103 * fix issue #102 * Update setup.py (#112) * Pypi cleanup (#114) * pypi cleanup * remove rst file * Add validation notebook (#119) Co-authored-by: Blake <blake.rosenthal@rsginc.com> Co-authored-by: Greg Macfarlane <gregmacfarlane@gmail.com>
I'm trying to get an implementation of populationsim up and running. I'm using the populationsim Anaconda environment (on MacOS 10.14.6), with the data files and configuration in this respository. I've been able to grind through many of the errors, but this traceback is something I can't figure out.
It's not clear if these
NA
values are coming from the controls (unlikely) or the seed table (I suppose very likely) or the geographic crosswalk, and if so from which column. Am I on the right track, or is it a different issue entirely?The text was updated successfully, but these errors were encountered: