Skip to content
Snippets Groups Projects
Commit 0e26f8cd authored by Dr. Felix Tobias Schindler's avatar Dr. Felix Tobias Schindler
Browse files

[python|discretefunction] minor fixes

parent d478968b
No related branches found
No related tags found
No related merge requests found
......@@ -23,4 +23,4 @@ def make_discrete_function(space, vector, name="dune.gdt.discretefunction"):
return factory(space, vector, name)
except:
continue
raise TypeError('no matching factory for space \'{}\''.format(space))
raise TypeError(f'no matching factory for space \'{space}\' and vector \'{vector}\'')
......@@ -63,9 +63,9 @@ public:
if (rC > 1)
class_name += "x" + XT::Common::to_string(rC);
class_name += "_" + XT::LA::bindings::container_name<V>::value();
class_name = XT::Common::to_camel_case(class_name);
auto ClassName = XT::Common::to_camel_case(class_name);
const std::string default_name = "dune.gdt.discretefunction";
bound_type c(m, XT::Common::to_camel_case(class_name).c_str(), XT::Common::to_camel_case(class_name).c_str());
bound_type c(m, XT::Common::to_camel_case(ClassName).c_str(), XT::Common::to_camel_case(ClassName).c_str());
c.def(py::init<const S&, V&, const std::string&>(),
"space"_a,
"vector"_a,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment