Hana,
we created a cache directory but the problem is that the
"input_configuration" section is not used at all so
I think it should be removed somehow as it is confusing : it is not
possible to run the estimation *without* a
cache and only with a mysql database that would be flushed to cache
at runtime. Or did I miss the point of
having that "input_configuration" section in the my_estimation_config :)
Fabrice
On Nov 29, 2007, at 8:08 PM, Hana Sevcikova wrote:
> 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 h
>> ttp://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
>
=====================================================
Fabrice
Marchal
http://marchal.let.fr
CNRS Associate researcher +33
472 72 79 44
Lab of Transportation Economics (LET), Berthelot 14, F-69363 Lyon
=====================================================
Received on Fri Nov 30 2007 - 02:01:12 PST
This archive was generated by hypermail 2.2.0 : Fri Nov 30 2007 - 02:01:13 PST