\(\newcommand{\B}[1]{ {\bf #1} }\) \(\newcommand{\R}[1]{ {\rm #1} }\)
copy_root_db¶
View page sourceCopy 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:
Copy the root node database to the fit node database.
Drop all of the constant tables from the fit node database; see at_cascade.constant_table_list .
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.
Create an empty log table in the fit node database.