Changeset 0dcc44c in tol


Ignore:
Timestamp:
Oct 26, 2008, 7:13:39 PM (18 years ago)
Author:
Víctor de Buen <vdebuen@…>
Branches:
1941-docker-image-to-test, devel, master
Children:
b6e52e72
Parents:
a0a6906
Message:

Building Set _.nodes by node type

git-svn-id: ​https://www.tol-project.org/svn/tolp/trunk@92 be4846ae-f051-483a-831f-b64e7d08527f

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tol/stdlib/math/stat/models/bayesian/bysMcmc/bsr/dynhlm/_db_api.load.tol

    ra0a6906 r0dcc44c  
    574574  Set input.missing.labels = Copy(Empty);
    575575
    576   Set _.nodes = BysMcmc::Bsr::DynHlm::DBApi::SqlTableTrace(
     576  Set _.nodes.obs = BysMcmc::Bsr::DynHlm::DBApi::SqlTableTrace(
    577577  "SELECT id_node_type, id_node FROM "+dbName+"."+_table::Node+" WHERE \n"+
    578578  "  id_model='"+_.id_model+"' AND \n"+
    579   "  id_session='"+_.id_session+"'"
    580   "order by id_node_type, nu_node","Bsr.DynHlm.DBNode");
     579  "  id_session='"+_.id_session+"' AND "
     580  "  id_node_type='OBS'"
     581  "order by nu_node","Bsr.DynHlm.DBNode");
     582  Set _.nodes.lat = BysMcmc::Bsr::DynHlm::DBApi::SqlTableTrace(
     583  "SELECT id_node_type, id_node FROM "+dbName+"."+_table::Node+" WHERE \n"+
     584  "  id_model='"+_.id_model+"' AND \n"+
     585  "  id_session='"+_.id_session+"' AND "
     586  "  id_node_type='LAT'"
     587  "order by nu_node","Bsr.DynHlm.DBNode");
     588  Set _.nodes.pri = BysMcmc::Bsr::DynHlm::DBApi::SqlTableTrace(
     589  "SELECT id_node_type, id_node FROM "+dbName+"."+_table::Node+" WHERE \n"+
     590  "  id_model='"+_.id_model+"' AND \n"+
     591  "  id_session='"+_.id_session+"' AND "
     592  "  id_node_type='PRI'"
     593  "order by nu_node","Bsr.DynHlm.DBNode");
     594  Set _.nodes = _.nodes.obs<<_.nodes.lat<<_.nodes.pri;
    581595
    582596//Mandatory methods that will be used by BysMcmc::Bsr::Import
Note: See TracChangeset for help on using the changeset viewer.