Skip to content

Commit

Permalink
Bug fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
whart222 committed Oct 9, 2024
1 parent 48dbd95 commit 22edeec
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/pycoek/pybind11/pycoek_pybind11.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -654,6 +654,7 @@ using tuple_of = typename tuple_n<I, T>::template type<>;
std::map<tuple_of<N, int>, double> values; \
dp.get(name, values); \
params.value(values); \
return; \
}

// params.value(values);
Expand All @@ -666,6 +667,7 @@ void initialize(TYPE& params, coek::DataPortal& dp, const std::string& name)
std::map<int, double> values;
dp.get(name, values);
params.value(values);
return;
}
NARRY_DATA(2)
NARRY_DATA(3)
Expand All @@ -683,7 +685,7 @@ void set_kwargs_parammap(TYPE& param, py::kwargs kwargs)
{
try {
if (kwargs.contains("data_portal")) {
auto dp_ = kwargs["name"];
auto dp_ = kwargs["data_portal"];
auto dp = dp_.cast<coek::DataPortal>();
auto key = kwargs["value"].cast<py::str>();
initialize(param, dp, key);
Expand Down

0 comments on commit 22edeec

Please sign in to comment.