Commit 74af3833 authored by Christophe Gonzales's avatar Christophe Gonzales

fixing bug in discretizedVariable insertions in databases

parent 79789996
Pipeline #22880819 canceled with stages
in 45 seconds
......@@ -42,7 +42,7 @@ namespace gum {
try {
for (auto node : bn.dag()) {
const Variable& var = bn.variable(node);
__database.insertTranslator(var, var_names[var.name()], missing_symbols);
__database.template insertTranslator<GUM_SCALAR,std::allocator>(var, var_names[var.name()], missing_symbols);
}
} catch (NotFound&) {
GUM_ERROR(MissingVariableInDatabase,
......@@ -66,7 +66,6 @@ namespace gum {
for (std::size_t i = std::size_t(0); i < nb_vars; ++i)
__name2nodeId.insert(__database.variable(i).name(), i);
// create the parser
__parser =
new DBRowGeneratorParser<>(__database.handler(), DBRowGeneratorSet<>());
......
......@@ -244,7 +244,7 @@ namespace gum {
// insert the translator into the translator set
const std::size_t pos =
__translators.insertTranslator(var, input_column, missing_symbols);
__translators.template insertTranslator<GUM_SCALAR,XALLOC>(var, input_column, missing_symbols);
// insert the name of the translator's variable to the set of variable names
try {
......
......@@ -851,7 +851,8 @@ namespace gum_tests {
A.addTick(double(i));
}
nodeList.push_back(templ.add(A)); // Ajout de la variable Age allant de 60
gum::NodeId a_id = templ.add(A);
nodeList.push_back(a_id); // Ajout de la variable Age allant de 60
// à 100 ans à la liste des noeuds
// Ajout de la variable ADL allant de 0 à 6 à la liste des noeuds
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment