Re: [UrbanSim-Users] using mysql for estimation input

From: Hana Sevcikova <hana_at_cs.washington.edu>
Date: Thu, 29 Nov 2007 11:08:15 -0800

Fabrice,

You need to first create a cache directory (with
opus_core/tools/create_baseyear_cache.py), set the 'cache_directory' in
my_configuration to that directory and run the estimation. The
input_configuration is included in order to be able to use that
configuration file as an argument for create_baseyear_cache.py.

Hana

Fabrice Marchal wrote:
> Hi,
>
> How can we specify the configuration to use the mysql tables for input
> before caching the data? The eugene/estimation/my_estimation_config.py
> looks like this:
>
> my_configuration = {
> 'cache_directory':'/urbansim_cache/eugene', # change or leave out
> 'input_configuration':DatabaseConfiguration(
> host_name = os.environ.get('MYSQLHOSTNAME','localhost'),
> user_name = os.environ.get('MYSQLUSERNAME',''),
> password = os.environ.get('MYSQLPASSWORD',''),
> database_name = 'eugene_1980_baseyear',
> ),
> 'output_configuration':DatabaseConfiguration(
> host_name = os.environ.get('MYSQLHOSTNAME','localhost'),
> user_name = os.environ.get('MYSQLUSERNAME',''),
> password = os.environ.get('MYSQLPASSWORD',''),
> database_name = 'eugene_1980_baseyear_estimation',
> ),
>
> but it seems the input_configuration is not used at all:
> data for the estimation are read from the cache, then output data
> are written to both the cache and the database.
> Is it possible to specify in the config to first dump
> the required mysql tables (as for simulation?)
>
> Thanks
> Fabrice
>
> =====================================================
> Fabrice Marchal
> http://marchal.let.fr
> CNRS Associate researcher +33 472
> 72 79 44
> Lab of Transportation Economics (LET), Berthelot 14, F-69363 Lyon
> =====================================================
>
>
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Users mailing list
> Users_at_urbansim.org
> http://www.urbansim.org/mailman/listinfo/users
Received on Thu Nov 29 2007 - 11:08:18 PST

This archive was generated by hypermail 2.2.0 : Thu Nov 29 2007 - 11:08:19 PST