mirror of
https://github.com/NGSolve/netgen.git
synced 2025-02-26 22:15:39 +05:00
Merge branch 'fix_parsing_flags' into 'master'
fix parsing numlist flag if objects are integers See merge request jschoeberl/netgen!298
This commit is contained in:
commit
85e27f9772
@ -39,7 +39,7 @@ namespace ngcore
|
||||
auto vdl = py::cast<py::list>(value);
|
||||
if (py::len(vdl) > 0)
|
||||
{
|
||||
if(py::isinstance<double>(vdl[0]))
|
||||
if(py::isinstance<py::float_>(vdl[0]) || py::isinstance<py::int_>(vdl[0]))
|
||||
flags.SetFlag(s, makeCArray<double>(vdl));
|
||||
if(py::isinstance<py::str>(vdl[0]))
|
||||
flags.SetFlag(s, makeCArray<string>(vdl));
|
||||
|
Loading…
Reference in New Issue
Block a user