Skip to content

Commit

Permalink
Add parameter names in Python for ChoicesParameter.
Browse files Browse the repository at this point in the history
Signed-off-by: Joey Kleingers <[email protected]>
  • Loading branch information
joeykleingers committed Jun 4, 2024
1 parent 6ec0344 commit d613f66
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Plugins/SimplnxCore/wrapping/python/simplnxpy.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1170,7 +1170,8 @@ PYBIND11_MODULE(simplnx, mod)

BindParameterConstructor(calculatorParameter);

choicesParameter.def(py::init<const std::string&, const std::string&, const std::string&, ChoicesParameter::ValueType, const ChoicesParameter::Choices&>());
choicesParameter.def(py::init<const std::string&, const std::string&, const std::string&, ChoicesParameter::ValueType, const ChoicesParameter::Choices&>(), "name"_a, "human_name"_a, "help_text"_a,
"default_value"_a, "choices"_a);

BindParameterConstructor(dataGroupCreationParameter);

Expand Down

0 comments on commit d613f66

Please sign in to comment.