Eugene tests - scenario_information?

From: Fabrice Marchal <fabrice.marchal_at_let.ish-lyon.cnrs.fr>
Date: Sat, 7 Jul 2007 22:09:28 +0200

Hi again,

I forgot to mention: in order to have the green-light for Eugene
all_tests
we had to create a database named "Eugene_1980_baseyear_opus_estimation"
as specified by default in the eugene.configs.

However, it seems to require a table which is not created by default
named "scenario_information" . Is this a mandatory table? What is its
role exactly? I had the feeling it was only needed in some cases so I
modified "opus_core/store/scenario_database.py" accordingly:

def _create_table_mapping(self, database_name):
.....
....
                 sql = "SELECT PARENT_DATABASE_URL FROM
scenario_information;"
                 _log_sql(sql, self.show_output)
                 cursor.execute(sql)
                 rows = cursor.fetchall()
                 if( not rows): ## <-- hack
                     return ## <-- hack
                 if (not rows[0][0]) or (len(rows[0][0]) < 1) :

Can someone shed light on this problem?

Fabrice

=====================================================
Fabrice Marchal fabrice.marchal_at_let.ish-
lyon.cnrs.fr
Associate researcher +33 472 72 79 44 fabrice.marchal_at_ieee.org
CNRS - Lab of Transport Economics (LET), Lyon http://marchal.let.fr
=====================================================
Received on Sat Jul 07 2007 - 13:09:35 PDT

This archive was generated by hypermail 2.2.0 : Sat Jul 07 2007 - 13:09:36 PDT