Skip to content
Snippets Groups Projects
Commit 6d4c1df8 authored by Manuel Günther's avatar Manuel Günther
Browse files

Fixed bug in writing string attributes.

parent a8f5ad67
No related branches found
No related tags found
No related merge requests found
......@@ -86,5 +86,5 @@ void LUTMachine::load(bob::io::HDF5File& file){
void LUTMachine::save(bob::io::HDF5File& file) const{
file.setArray("LUT", m_look_up_tables);
file.setArray("Indices", m_indices);
file.setAttribute(".", "MachineType", "LUTMachine");
}
\ No newline at end of file
file.setAttribute(".", "MachineType", std::string("LUTMachine"));
}
......@@ -60,5 +60,5 @@ void StumpMachine::save(bob::io::HDF5File& file) const{
file.set("Threshold", m_threshold);
file.set("Polarity", m_polarity);
file.set("Index", m_index);
file.setAttribute(".", "MachineType", "StumpMachine");
}
\ No newline at end of file
file.setAttribute(".", "MachineType", std::string("StumpMachine"));
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment