copy_root_db

View page source

Copy Root Node Database

Prototype

# at_cascade.copy_root_db
def copy_root_db(root_database, fit_database) :
   assert type(root_database) == str
   assert type(fit_database) == str

root_database

This is the root_database . It must exist when this routine is called.

fit_database

This is a fit_database that can be used to fit the root node. The directory where the fit_database will be located must exist when this routine is called. This database is created as follows:

  1. Copy the root node database to the fit node database.

  2. Drop all of the constant tables from the fit node database; see at_cascade.constant_table_list .

  3. Change the fit node database option table so that is uses the root node database for all the constant tables; i.e., set the other_database and other_input_table options to do this.

  4. Create an empty log table in the fit node database.