Allow for changing of the number of analysis that the metamodel runs
@@ -278,6 +278,10 @@ class LoomMetamodel(metamodel.IBayesDBMetamodel):
return os.path.join(self.loom_store_path, name)
def initialize_models(self, bdb, generator_id, modelnos):
+ bdb.sql_execute('''
+ DELETE FROM bayesdb_loom_generator_model_info
+ WHERE generator_id = ?
+ ''', (generator_id,))
bdb.sql_execute('''
INSERT INTO bayesdb_loom_generator_model_info
(generator_id, num_models)
