[UrbanSim-Users] writing specifications and coefficients to a baseyear database

From: Brian Miles <Brian.Miles_at_uvm.edu>
Date: Mon, 12 Nov 2007 13:10:22 -0500

Hello,

I'm updating our estimation management tool <http://trondheim.cs.washington.edu/cgi-bin/trac.cgi/wiki/EstimationTrapperKeeper
> to be able to write specifications and coefficients to the baseyear
database.

What I want to be able to do is to write arbitrary estimation results
(stored in my trapperkeeper database) to the
"<MODEL_NAME>_specification" and the "<MODEL_NAME>_coefficients" tables.

Is there a relatively easy way to write to these tables through Opus's
dataset/storage APIs?

I've been looking at what's done in
urbansim.estimation.Estimator::save_results and
urbansim.models.LandPriceModel.Test and am thinking that I might be
able to:

1. build dict_storage-based Storage object(s) to put the data in

2. get connection to the sql-based baseyear as a Storage object

3. Build opus_core.Coefficients and opus_core.EquationSpecification
datasets using the data in dict_storage

4. Tell the Coefficients and EquationSpecification objects to write
themselves to the baseyear storage

Does this seem like "the right way" to do what I want to do? Are the
Coefficients and EquationSpecification classes the right datasets to
use?

Any suggestions or pointers to relevant example code would be
appreciated.

Thanks,

Brian
Received on Mon Nov 12 2007 - 10:10:24 PST

This archive was generated by hypermail 2.2.0 : Mon Nov 12 2007 - 10:10:25 PST