Re: [UrbanSim-Users] MySql configuration

From: <larryhc_at_mail.utexas.edu>
Date: Mon, 17 Sep 2007 10:57:37 -0500

Hi, we've been doing a similar thing here in Austin, where we've been creating a
small subset of the region, (using the Eugene files for some of the data we may
be 'missing'). We got a similar message. The problem is that there isn't enough
office space for at least one of your sectors of employment. The trick we've
used so far to get around this was to increase the square footage of our
buildings (I think I made it triple the normal size). This apparently has to be
done in both the buildings table and the gridcells table - an interesting
question is whether the change only needed to be made in one of the tables. A
different, but similar way of solving this problem (which we didn't use, but
you're welcome to try) would be to reduce the square footage needed per job in
the relevant fields in the gridcells table.

Good luck,

Larry H-C

Quoting Mark Kryvobokov <k_mark_at_ukr.net>:

> Last week I modified general_configuration_with_changed_elcm.py
> (for the UrbanSim version 4, which we use, this file is to modify, not
> general_configuration.py) and had all the problems I reported in the Mailing
> List.
>
> Mark
>
> --- Исходное сообщение ---
> От кого: Hana Sevcikova (hana_at_cs.washington.edu)
> Кому: Mark Kryvobokov
> Дата: 14 сентября, 17:06:37
> Тема: Re: [UrbanSim-Users] MySql configuration
>
> > Mark,
> >
> > The reason for this error is that there are not enough eligible locations
> > to sample from in order to create a set of alternatives for placing jobs.
> > The default setting is to sample 30 locations. You can try to decrease
> > this number by adding an argument sample_size_locations=10 (e.g.) to
> >
> > 'employment_location_choice_model': {
> > 'controller':
> > EmploymentLocationChoiceModelConfigurationCreator(
> > input_index = 'erm_index',
> > # here add the argument
> > ).execute(),
> > },
> >
> > in urbansim/configs/general_configuration.py. Or switch the sampling off
> > by adding an argument sampler=None to the same place.
> >
> > I hope it works.
> >
> > Hana
> >
> >
> > On Fri, 14 Sep 2007, Mark Kryvobokov wrote:
> >
> > > Hi,
> > > When we run simulation with the Eugene data, everything was OK. Then
> > > we started to change the Eugene baseyear dataset in order to transform
> > > it to the dataset for the city of Lyon. The intention is to change the
> > > Eugene dataset step by step. Thus, in Zones table we changed the travel
> > > time and added data for additional zones. In Gridcells table we remained
> > > only one gridcell for each zone (for the beginning). We remain only
> > > these gridcells in other tables. After running simulation for the same
> > > sequence of models as for Eugene data, the only problem is with {
> > > 'employment_location_choice_model' : { 'group_members' : '_all_' }} .
> > > When we run simulation without that model, it is OK. When we run
> > > simulation with that model, the problems are as follows:
> > >
> > >
> > >
> > > WARNING: weight array dosen't have enough non-zero counts, use sample
> with replacement
> > >
> > >
> > > Traceback (most recent call last):
> > >
> > > File
> "C:\MyNew\projects\OPUS\opus-4.0\urbansim\model_coordinators\model_system.py",
> line 521, in ?
> > >
> > > s.run(resources)
> > >
> > > File
> "C:\MyNew\projects\OPUS\opus-4.0\urbansim\model_coordinators\model_system.py",
> line 132, in run
> > >
> > > resources=resources, flt_directory=flt_directory)
> > >
> > > File
> "C:\MyNew\projects\OPUS\opus-4.0\urbansim\model_coordinators\model_system.py",
> line 358, in run_year
> > >
> > > self.vardict[outputvar] = self.do_process(locals())
> > >
> > > File
> "C:\MyNew\projects\OPUS\opus-4.0\urbansim\model_coordinators\model_system.py",
> line 424, in do_process
> > >
> > > return eval(ev)
> > >
> > > File "", line 0, in ?
> > >
> > > File "C:\MyNew\projects\OPUS\opus-4.0\opus_core\model.py", line 45, in
> logged_run_method
> > >
> > > results = run_method(*req_args, **opt_args)
> > >
> > > File "C:\MyNew\projects\OPUS\opus-4.0\opus_core\configurable.py", line
> 39, in config_run_method
> > >
> > > results = run_method(*req_args, **opt_args)
> > >
> > > File
>
"C:\MyNew\projects\OPUS\opus-4.0\urbansim\models\agent_location_choice_model_member.py",
> line 44, in run
> > >
> > > agents_index=agents_index[new_agents_index], **kwargs)
> > >
> > > File
>
"C:\MyNew\projects\OPUS\opus-4.0\urbansim\models\agent_location_choice_model.py",
> line 68, in run
> > >
> > > agents_index[unplaced], chunk_specification, data_objects, run_config,
> debuglevel)
> > >
> > > File
> "C:\MyNew\projects\OPUS\opus-4.0\urbansim\models\location_choice_model.py",
> line 123, in run
> > >
> > > debuglevel=debuglevel)
> > >
> > > File "C:\MyNew\projects\OPUS\opus-4.0\opus_core\choice_model.py", line
> 134, in run
> > >
> > > data_objects=data_objects)
> > >
> > > File "C:\MyNew\projects\OPUS\opus-4.0\opus_core\chunk_model.py", line 74,
> in run
> > >
> > > dataset, **kwargs)
> > >
> > > File
>
"C:\MyNew\projects\OPUS\opus-4.0\urbansim\models\agent_location_choice_model.py",
> line 83, in run_chunk
> > >
> > > data_objects)
> > >
> > > File
> "C:\MyNew\projects\OPUS\opus-4.0\urbansim\models\location_choice_model.py",
> line 140, in run_chunk
> > >
> > > choices = ChoiceModel.run_chunk(self,agents_index, agent_set,
> specification, coefficients, data_objects)
> > >
> > > File "C:\MyNew\projects\OPUS\opus-4.0\opus_core\choice_model.py", line
> 147, in run_chunk
> > >
> > > index = self.get_choice_index(nchoices, agent_set, agents_index,
> agentsubset, data_objects)
> > >
> > > File
> "C:\MyNew\projects\OPUS\opus-4.0\urbansim\models\location_choice_model.py",
> line 283, in get_choice_index
> > >
> > > weight=self.weights, resources=self.run_config)
> > >
> > > File "C:\MyNew\projects\OPUS\opus-4.0\opus_core\configurable.py", line
> 39, in config_run_method
> > >
> > > results = run_method(*req_args, **opt_args)
> > >
> > > File
> "C:\MyNew\projects\OPUS\opus-4.0\opus_core\samplers\weighted_sampler.py",
> line 103, in run
> > >
> > > replace=replace, return_indices=True )
> > >
> > > File "C:\MyNew\projects\OPUS\opus-4.0\opus_core\sampling_toolbox.py",
> line 273, in prob2dsample
> > >
> > > cum_prob = ncumsum(p_array)
> > >
> > > File "C:\MyNew\projects\OPUS\opus-4.0\opus_core\misc.py", line 401, in
> ncumsum
> > >
> > > raise ValueError, "The probability array must sum up to 1. It is " + \
> > >
> > > ValueError: The probability array must sum up to 1. It is -1.#IND
> > >
> > >
> C:\Python24\Lib\site-packages\mysql_python-1.2.2-py2.4-win32.egg\_mysql.py:3:
> UserWarning: Module _mysql was already imported from
> C:\Python24\Lib\site-packages\mysql_python-1.2.2-py2.4-win32.egg\_mysql.pyc,
> but c:\python24\lib\site-packages\mysql_python-1.2.2-py2.4-win32.egg is being
> added to sys.path
> > >
> > >
> C:\Python24\Lib\site-packages\mysql_python-1.2.2-py2.4-win32.egg\_mysql.py:3:
> UserWarning: Module MySQLdb was already imported from
>
C:\Python24\Lib\site-packages\mysql_python-1.2.2-py2.4-win32.egg\MySQLdb\__init__.pyc,
> but c:\python24\lib\site-packages\mysql_python-1.2.2-py2.4-win32.egg is being
> added to sys.path
> > >
> > >
> C:\Python24\Lib\site-packages\mysql_python-1.2.2-py2.4-win32.egg\_mysql.py:3:
> UserWarning: Module opus_core was already imported from
> C:\MyNew\projects\OPUS\opus-4.0\opus_core\__init__.pyc, but
> c:\mynew\projects\opus\opus-4.0 is being added to sys.path
> > >
> > > Traceback (most recent call last):
> > >
> > > File "C:\MyNew\projects\OPUS\opus-4.0\opus_core\tools\start_run.py", line
> 73, in ?
> > >
> > > run_manager.run_run(config)
> > >
> > > File
>
"C:\MyNew\projects\OPUS\opus-4.0\opus_core\services\run_server\run_manager.py",
> line 162, in run_run
> > >
> > > model_system.run_multiprocess(run_resources)
> > >
> > > File
> "C:\MyNew\projects\OPUS\opus-4.0\urbansim\model_coordinators\model_system.py",
> line 457, in run_multiprocess
> > >
> > > ForkProcess().fork_new_process(
> > >
> > > File "C:\MyNew\projects\OPUS\opus-4.0\opus_core\fork_process.py", line
> 47, in fork_new_process
> > >
> > > raise StandardError("Problem with %s" % module_name)
> > >
> > > StandardError: Problem with urbansim.model_coordinators.model_system
> > >
> > > Traceback (most recent call last):
> > >
> > > File "C:\MyNew\projects\OPUS\opus-4.0\eugene\tools\letsim_run.py", line
> 54, in ?
> > >
> > > ForkProcess().fork_new_process('opus_core.tools.start_run',
> resources=config)
> > >
> > > File "C:\MyNew\projects\OPUS\opus-4.0\opus_core\fork_process.py", line
> 47, in fork_new_process
> > >
> > > raise StandardError("Problem with %s" % module_name)
> > >
> > > StandardError: Problem with opus_core.tools.start_run
> > > >From employment_sectors table we deleted those sector_id values, which
> are not used in our data in jobs table, we did the same for other tables
> (race_id for race_names etc.), but after running simulation we have the same
> errors. What is the reason of the problem?
> > >
> > > Mark
> > >
> >
>
>
> --
> Центр АИЛАЗ - современная микрохирургия катаракты.
> http://www.ailas.com.ua
>
>
Received on Mon Sep 17 2007 - 08:57:40 PDT

This archive was generated by hypermail 2.2.0 : Mon Sep 17 2007 - 08:57:41 PDT