Comments (9)
I haven't fully looked through all the files you provided, but my guess is the issue is in configuring the settings file. One thing that jumps out at me is that your seed data is specified at the TAZ level -
Geographic Settings
------------------------------------------------------------------
geographies: [REGION, TRACT, TAZ]
seed_geography: TAZ
The seed is commonly the PUMA level (larger lever than the TAZ) - it looks like you are indeed using a Seed at the TAZ level - perhaps from a household survey. But my hunch is that there is a configuration issue. The warnings above the error also make me concerned that something is incorrect in the settings. Sorry I can't be of more help, but I will continue to think on it and post any other ideas that jump to mind.
from populationsim.
I also haven't looked through all the files but as @bettinardi pointed out, TAZs cannot be set as the seed geography in this case. In PopulationSim, there can be only one meta-geography above the seed geography. Any geography can be set as the seed geography (need not be PUMA always), provided there is only one geography above it. So in this case, TRACT should be set as the seed geography. Please try setting TRACT as the seed.
from populationsim.
@bettinardi @binnympaul Thank you so much for your suggestion. I modified the configuration setting.yaml to set TRACT as the seed geography as attached, and then it seems the current issue has been solved. However, I am still facing another error ("assert weights_df is not None") at sub_balancing.geography=TRACT model (populationsim/steps/sub_balancing.py, line 236) as follows. Do you have any idea to solve this error?
Running step 'sub_balancing'
WARNING - AssertionError exception running sub_balancing.geography=TRACT model:
ERROR - mp_tasks - mp_seed_balancing - AssertionError exception caught in mp_run_simulation:
ERROR -
Traceback (most recent call last):
File "C:\Users\oc3490\anaconda3\envs\popsim\lib\site-packages\activitysim\core\mp_tasks.py", line 915, in mp_run_simulation
run_simulation(queue, step_info, resume_after, shared_data_buffer)
File "C:\Users\oc3490\anaconda3\envs\popsim\lib\site-packages\activitysim\core\mp_tasks.py", line 867, in run_simulation
raise e
File "C:\Users\oc3490\anaconda3\envs\popsim\lib\site-packages\activitysim\core\mp_tasks.py", line 864, in run_simulation
pipeline.run_model(model)
File "C:\Users\oc3490\anaconda3\envs\popsim\lib\site-packages\activitysim\core\pipeline.py", line 502, in run_model
orca.run([step_name])
File "C:\Users\oc3490\anaconda3\envs\popsim\lib\site-packages\orca\orca.py", line 2177, in run
step()
File "C:\Users\oc3490\anaconda3\envs\popsim\lib\site-packages\orca\orca.py", line 973, in call
return self._func(**kwargs)
File "C:\Users\oc3490\anaconda3\envs\popsim\lib\site-packages\populationsim\steps\sub_balancing.py", line 236, in sub_balancing
assert weights_df is not None
AssertionError
from populationsim.
Hello, is there any one to provide some ways to solve this issue to me?
from populationsim.
I'm sorry that no one has been able to respond. In general it seems like your attempts are outside of the way we were thinking Popsim would be used. So I think Popsim is breaking because we didn't anticipate the configuration you are attempting. To fix it, I think Binny or myself or someone familiar with PopSim would need to comb through your setup / approach and fully review and try to reconfigure the approach to get it working. It's possible it's something simple, but it's hard to guess without more fully getting up to speed with what you are attempting (at least for myself - to be able to respond I would need to fully review and understand your set up). So my only real suggestion (which is not very helpful), is to try and refer back to the instructions and attempt to test re-configuring your setup closer and closer to provided examples or instructions to get it to work and then back out from there, what is different in your approach that is breaking the tool - https://activitysim.github.io/populationsim/.
Were you able to get an example to run that you can refer back to?
from populationsim.
I also suggest you review the examples in the repository and the instructions. Your error seems to be due to an inconsistent configuration of the settings file. Complete instructions on configuring the settings file are here: https://activitysim.github.io/populationsim/application_configuration.html#configuring-settings-file
As @bettinardi mentioned, it is not very easy to debug without looking at the setup. It seems like you have a sub-balancing step for your seed geography (TAZ) in the run_list. You cannot have a sub-balancing step for the seed geography. Try correcting that and see if it fixes the issue for you.
Reading through the entire wiki will be very helpful. There are links to additional resources including a training package here: https://activitysim.github.io/populationsim/docs.html#external-resources
from populationsim.
@binnympaul @bettinardi Thank you so much for your reply. As @binnympaul pointed out, the sub-balancing setting seems to occur the error which I have encountered. After fixing this setting with non-seed geopraphy, the program is running well now. I appreciate your suggestion.
from populationsim.
That's great to hear - I hope you have a good experience with PopulationSim moving forward.
from populationsim.
This looks resolved - hopefully I'm closing correctly
from populationsim.
Related Issues (20)
- repop-pop-pop feature - pipeline file is not updated HOT 2
- Convert distribution system to conda-forge HOT 2
- add to documentation based on Zephyr review
- Different outputs when using MultiProcessing HOT 9
- Installation process issues HOT 3
- example_calm_repop not running HOT 8
- Repop mode not populating the second level geography (example_calm_repop)
- Allow specification of non-boolean expressions HOT 1
- Running Error: ValueError("Lengths must match to compare")
- Adjust a third party synthetic population HOT 8
- WGTP and PWGTP Calculations HOT 6
- NumPy deprecation HOT 1
- ValueError: Buffer dtype mismatch, expected 'const int64_t' but got 'int' in setup_data_structures.py HOT 1
- ValueError exception running sub_balancing.geography=TRACT model: Length of values (2) does not match length of index (37) HOT 8
- Repop Error HOT 1
- Multiprocessing Start_time Error
- Randomness of PopulationSim outputs related to API calls HOT 2
- Installation outdated and not functional HOT 2
- example_calm NOT Running due to issues with activitysim
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from populationsim.