Skip to content
Permalink
Browse files
Merge branch 'save_check_for_special_flags' into 'master'
save check for existence of special treated flags

See merge request jschoeberl/ngsolve!310
  • Loading branch information
JSchoeberl committed Mar 7, 2018
2 parents 0a52be8 + 0233505 commit d07789cb0be236d84cc1db3e2a482aff0309d9b2
Showing with 1 addition and 6 deletions.
  1. +1 −6 ngstd/python_ngstd.cpp
@@ -91,13 +91,8 @@ Flags NGS_DLL_HEADER CreateFlagsFromKwArgs(py::object pyclass, const py::kwargs&
<< std::string(py::str(pyclass)) << ", maybe there is a typo?" << endl;

py::dict special;
try
{
if(py::hasattr(pyclass,"__special_treated_flags__"))
special = pyclass.attr("__special_treated_flags__")();
}
catch(std::exception e)
{ }

for (auto item : kwargs)
{
auto name = item.first.cast<string>();

0 comments on commit d07789c

Please sign in to comment.