Commit 6d4c1df8 authored by Manuel Günther's avatar Manuel Günther
Browse files

Fixed bug in writing string attributes.

parent a8f5ad67
......@@ -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");
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");
file.setAttribute(".", "MachineType", std::string("StumpMachine"));
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