Quinn,
In your configuration file please put those two lines
run_configuration['models_configuration'] = {}
run_configuration['models_configuration']['prescheduled_events'] = {}
above the line
run_configuration['models_configuration']['prescheduled_events']['controller'] = {
I hope this will work.
Hana
On Fri, 16 Feb 2007, Quinn Korbulic wrote:
> 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 - 08:49:26 PST
This archive was generated by hypermail 2.2.0 : Mon Feb 19 2007 - 08:49:27 PST