Re: Run Manager Configuration

From: Peter McNally <mcnally_at_semcog.org>
Date: Mon, 19 Feb 2007 09:16:42 -0500

Hello Quinn,

First of all, congratulations on getting to the point where you are
ready to run UrbanSim 4 with your own data! I am not sure that I can
solve the problem you are encountering, but I can let you see our
configuration file (attached).

At SEMCOG we are running the Nov. 21 version of UrbanSim. So a few
things might be different for you, depending on the version you are
using. We do not specify models_configurations in our configuration
file. We import this from
urbansim.configs.general_configuration_with_changed_elcm.

So, not sure that helps you at all, but I thought I would let you know
how we are getting it to run. Once again, congratulations and welcome
to the small group of users (3?) that are using Urbansim/OPUS with their
own data.

-Peter

Peter J. McNally
Planning Analyst
Southeast Michigan Council of Governments
535 Griswold, Suite 300
Detroit, MI 48226
313.324.3442
mcnally_at_semcog.org

>>> "Quinn Korbulic" <korbulic_at_nmsu.edu> 2/16/2007 5:11 pm >>>
Hello,

I've recently completed the database for the El Paso Pilot study area
and
have begun to try to run UrbanSim. I've had some success in creating
the run
configuration, e.g. all tables are cached and gridcells unrolled, but
now as
I try to add 'models' to the run configuration I have had nothing but
failure.see below.

I am adding one 'model' entry and its corresponding controller entry at
a
time and am stuck on the first: 'prescheduled_events'
The error is as follows:

C:\workspace\eppilot\tools>python start_run.py -c baseline_run
Traceback (most recent call last):
  File "start_run.py", line 54, in ?
    config = get_config_from_opus_path(opus_path)
  File "C:\Python24\Lib\site-packages\opus_core\misc.py", line 540, in
get_config_from_opus_path
    exec(import_stmt)
  File "<string>", line 1, in ?
  File "C:\workspace\eppilot\tools\baseline_run.py", line 75, in ?
 
run_configuration['models_configuration']['prescheduled_events']['controller
'] = {
KeyError: 'models_configuration'

My 'baseline_run' file looks like this:

import os
from opus_core.configurations.database_configuration import
DatabaseConfiguration
from urbansim.configs.models_configuration import ModelsConfiguration
from opus_core.configuration import Configuration

run_configuration = {
            'model_system':'urbansim.model_coordinators.model_system',
#
mandatory
            'description':'Run baseyear Test',
            'in_storage_type':'mysql',
            'creating_baseyear_cache_configuration': {
                'cache_mysql_data':
'urbansim.model_coordinators.cache_mysql_data',
                'tables_to_cache_nchunks':{ # default: each
table
                                                     # defaults to
1
                'gridcells':2, # default: 1
                    },
                'cache_from_mysql':True,
                'cache_directory_root':'c:\urbansim_cache\ep_pilot',
                'tables_to_copy_to_previous_years': {
                    'development_type_groups':1992,
                    'development_types':1992,
                    'development_type_group_definitions':1992,
                    },
                },
            'input_configuration': DatabaseConfiguration(
                host_name =
os.environ.get('MYSQLHOSTNAME','localhost'),
                user_name =
os.environ.get('MYSQLUSERNAME','urbansim'),
                password =
os.environ.get('MYSQLPASSWORD','urbansim'),
                database_name = 'ep_pilot',
                ),
            #'output_configuration': DatabaseConfiguration(
             # host_name =
os.environ.get('MYSQLHOSTNAME','localhost'),
             # user_name =
os.environ.get('MYSQLUSERNAME','urbansim'),
              # password =
os.environ.get('MYSQLPASSWORD','urbansim'),
              # database_name = 'ep_pilot_output' # %
get_host_name(),
            # ),
                'base_year': 1997,
                'years': (1997, 2000),
                      }

run_configuration['models'] = [
                'prescheduled_events',
                #'events_coordinator',
                #'residential_land_share_model',
                #'land_price_model',
                #'development_project_transition_model',
               
#'residential_development_project_location_choice_model',
               
#'commercial_development_project_location_choice_model',
               
#'industrial_development_project_location_choice_model',
                #'development_event_transition_model',
                #'events_coordinator',
                #'residential_land_share_model',
                #'household_transition_model',
                #'employment_transition_model',
                #'household_relocation_model',
                #'household_location_choice_model',
                #'employment_relocation_model',
                #'employment_location_choice_model',
                #'distribute_unplaced_jobs_model',
                ]

run_configuration['models_configuration']['prescheduled_events']['controller
'] = {
                     "import":
{"urbansim.models.process_prescheduled_development_events":
 
"ProcessPrescheduledDevelopmentEvents"},
                     "init": {
                         "name":
"ProcessPrescheduledDevelopmentEvents"},
                     "run": {
                         "arguments": {"storage":
"base_cache_storage"},
                         "output": "development_events"
                }
             }

Any suggestions?

Thanks in advance for any help provided.

Quinn Korbulic
GIS Coordinator
Spatial Applications and Research Center
New Mexico State University
Geography Department
Box 30001, Dept. MAP
Las Cruces, NM 88003-0001
VOICE (505) 646-5755
FAX (505) 646-7430

Received on Mon Feb 19 2007 - 06:22:38 PST

This archive was generated by hypermail 2.2.0 : Mon Feb 19 2007 - 06:22:41 PST