Giter Club home page Giter Club logo

Comments (13)

bettinardi avatar bettinardi commented on May 23, 2024

That sounds like it is failing pretty early. It seems like the taz data control is not established correctly. How may minutes or seconds would you say that it ran before it got to this message?

from populationsim.

toliwaga avatar toliwaga commented on May 23, 2024

from populationsim.

issa-jtmt avatar issa-jtmt commented on May 23, 2024

activitysim.log
Please note that it takes me less than 30 seconds to have this message. I could not understand the problem there.

Any help would do.

thanks.

Issa

from populationsim.

bettinardi avatar bettinardi commented on May 23, 2024

I'll leave it to Jeff to provide a more helpful response, but it looks like it read the control_taz.csv file fine, so I'm guessing there must be an inconsistency in the settings.ymal or controls.csv. Either that or it could be a data type in the control_taz file. In other issues we have found that PopulationSim doesn't do well with decimals in the control input files. You might ensure that everything is a round integer in your taz file and all your control files.

from populationsim.

issa-jtmt avatar issa-jtmt commented on May 23, 2024

By the way, I am very desperate and disappointed by this error message, which does not have a clear meaning. I tried everything, still to no avail. Any help would be really appreciated.

I attached also the yaml file (in text here).

Issa
‏‏settings.txt

from populationsim.

bettinardi avatar bettinardi commented on May 23, 2024

I would echo that PopulationSim would benefit from better error reporting in general, and one thing that would help that would be some standard checks up front for known issues so that those issues can be flagged and a more helpful error message can be provided. I see that taz is your lowest level of geography. That means that num_hh specifically needs to be called out and pointed to the correct field in your controls.csv. Again, I would check for and round off any decimals. Ensure all control files are integer only...

from populationsim.

issa-jtmt avatar issa-jtmt commented on May 23, 2024

Well, I do not have any kind of decimals in the control file. This is not the issue here.
Al the data types there are numerical. No letters or anything. I will post also controls and the geo_cross_walk files (moved them to text).

Thanks.

‏‏geo_cross_walk.txt
‏‏control_taz.txt

from populationsim.

bettinardi avatar bettinardi commented on May 23, 2024

The other file that would need to be shared is the controls.csv in the config folder

from populationsim.

issa-jtmt avatar issa-jtmt commented on May 23, 2024

‏‏controls.txt
Attached.

Sorry for the mess, but I need to run this ASAP.

from populationsim.

bettinardi avatar bettinardi commented on May 23, 2024

I don't know how the seed was processed. It looks like in your control file you are referencing a "hhnum" filed in your seed. I know we have had issues when we try and mess with the expression for "num_hh". You have this - households.hhnum > 0

We have this:
(households.WGTP > 0) & (households.WGTP < np.inf)

I'll let you know if I think of anything else, but that's currently my best thought. Maybe Jeff or others can review and provide better instruction.

I would add that after you get this working, you are going to have conflicting controls. All your size controls are going to fight directly with your duplicate population control -
population,taz,persons,1000000,pop,persons.hhnum >= 1

I don't think that population control will work as intended. I suggest removing that one, and letting the population by age controls do the work of that total population control.

Related to this, you might consider doing tests where you start with a smaller set of controls and then add controls and see how those impact the results (once you get it working).

from populationsim.

binnympaul avatar binnympaul commented on May 23, 2024

Here is the original runtime error

image

Just reiterating what I sent in the email for better documentation.

PopulationSim expects you to be consistent with geography names, it is even case sensitive. In your settings file, where you list the geographies, “taz” is in lower case but while defining the taz control table, you use uppercase.

  • tablename: TAZ_control_data
    filename : control_taz.csv

As per the error message it cannot find "taz_control_data" since "taz" was listed as a geography. However, you defined "TAZ_control_data" as the control table for that geography. Defining that table by the name "taz_control_table" should probably resolve this error.
Please try using consistent geography names everywhere. Please update this thread if that fixes it.

from populationsim.

binnympaul avatar binnympaul commented on May 23, 2024

@issa-jtmt : Since this has been resolved can we please close this issue? I will open another issue with an enhancement/documentation tag

from populationsim.

issa-jtmt avatar issa-jtmt commented on May 23, 2024

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.