GithubHelp home page GithubHelp logo

Comments (4)

toliwaga avatar toliwaga commented on July 18, 2024

There might well be a problem with the consistency of the controls. That is the usual reason that the integerizer fails. Look for zones with very small numbers of households in them - if there are only a couple of households in a zone, it can be impossible to satisfy the constraints.

from populationsim.

bettinardi avatar bettinardi commented on July 18, 2024

We're just noticing this warning at ODOT as well, as we are trying to move the synthetic population to future years. In my spot checks it does appear to be zones with only one household, with a number of controls, and I'm guessing one household can't meet all the controls. However, the process fails with the error message below. Do we think these are related, and are there any thoughts on how to track down the issue with the inputs?

WARNING - Integerizer: 1 zero resid_weights
Traceback (most recent call last):
File "run_populationsim.py", line 62, in
pipeline.run(models=steps, resume_after=resume_after)
File "H:\Tools\ModelingTools\PopulationSim\Anaconda2\envs\popsim\lib\site-packages\activitysim\core\pipeline.py", line 571, in run
run_model(model)
File "H:\Tools\ModelingTools\PopulationSim\Anaconda2\envs\popsim\lib\site-packages\activitysim\core\pipeline.py", line 472, in run_model
orca.run([step_name])
File "H:\Tools\ModelingTools\PopulationSim\Anaconda2\envs\popsim\lib\site-packages\orca\orca.py", line 1987, in run
step()
File "H:\Tools\ModelingTools\PopulationSim\Anaconda2\envs\popsim\lib\site-packages\orca\orca.py", line 792, in call
return self._func(**kwargs)
File "H:\Tools\ModelingTools\PopulationSim\Anaconda2\envs\popsim\lib\site-packages\populationsim\steps\sub_balancing.py", line 276, in sub_balancing
crosswalk_df=seed_crosswalk_df
File "H:\Tools\ModelingTools\PopulationSim\Anaconda2\envs\popsim\lib\site-packages\populationsim\steps\sub_balancing.py", line 179, in balance_and_integerize
sub_control_zones=sub_control_zones)
File "H:\Tools\ModelingTools\PopulationSim\Anaconda2\envs\popsim\lib\site-packages\populationsim\multi_integerizer.py", line 590, in multi_integerize
sub_control_zones=sub_control_zones,
File "H:\Tools\ModelingTools\PopulationSim\Anaconda2\envs\popsim\lib\site-packages\populationsim\multi_integerizer.py", line 375, in do_simul_integerizing
combine_results=False)
File "H:\Tools\ModelingTools\PopulationSim\Anaconda2\envs\popsim\lib\site-packages\populationsim\multi_integerizer.py", line 508, in do_sequential_integerizing
total_hh_control_col=total_hh_control_col
File "H:\Tools\ModelingTools\PopulationSim\Anaconda2\envs\popsim\lib\site-packages\populationsim\integerizer.py", line 259, in do_integerizing
status = integerizer.integerize()
File "H:\Tools\ModelingTools\PopulationSim\Anaconda2\envs\popsim\lib\site-packages\populationsim\integerizer.py", line 156, in integerize
assert False
AssertionError
Closing remaining open files:output\pipeline.h5...done
PopulationSim run complete!!
16:42:03.68
Press any key to continue . . .

from populationsim.

toliwaga avatar toliwaga commented on July 18, 2024

This error is driven by an edge case that I was doubtful about but had no test case to drive. I have pushed a new test branch to test this. I think we can probably just pull this to master, but and I will defer to Ben as how best to roll this out.

from populationsim.

bettinardi avatar bettinardi commented on July 18, 2024

would you like our input folder to test it?

from populationsim.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.