Changeset f9d97db in tol


Ignore:
Timestamp:
Oct 9, 2009, 9:05:37 AM (17 years ago)
Author:
Víctor de Buen <vdebuen@…>
Branches:
1941-docker-image-to-test, devel, master
Children:
90ef6a4
Parents:
03c065a
Message:

Primary modules must explicit all missing, even repeated common input missing

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tol/stdlib/math/stat/models/bayesian/bysMcmc/bsr/dynhlm/_build.node.obs.tol

    r03c065a rf9d97db  
    455455  //Acumulate input.missing.labels to avoid repetitions
    456456  Set input.missing.labels,
     457  //Observational node must be in a primary or joint module
     458  Text module.type,
    457459  //The result of calling BysMcmc::Bsr::Import::Constraints
    458460  NameBlock constraints,
    … …  
    499501  NameBlock _.constraints = constraints;
    500502  Real _.forceZeroInputCoef = forceZeroInputCoef;
    501 
     503  Text _.module.type = module.type;
    502504  Set _.missing = _.output::_.serie.info::_.missing <<
    503505    BinGroup("<<", For(1,_.nInp, Set(Real j)
    … …  
    506508    //WriteLn("TRACE 1 inp::_.serie.info::_.missing = "<<inp::_.serie.info::_.missing);
    507509    //WriteLn("TRACE 2 input.missing.labels = "<<input.missing.labels);
    508       Set aux = If(inp::_.serie.info::_.id_node==inp::_.serie.info::_.missing.label,
     510      Set aux = If(Or(_.module.type=="primary",
     511                      inp::_.serie.info::_.id_node ==
     512                      inp::_.serie.info::_.missing.label),
    509513      {
    510514        inp::_.serie.info::_.missing
    … …  
    521525      });
    522526    //WriteLn("TRACE 4 aux = "<<aux);
    523       Real If(!Card(aux), 0,
     527      Real If(Or(_.module.type=="primary", !Card(aux)), 0,
    524528      {
    525529        Set Append(input.missing.labels, aux);
Note: See TracChangeset for help on using the changeset viewer.