SCIInstitute / ShapeWorks

ShapeWorks
http://sciinstitute.github.io/ShapeWorks/
Other
104 stars 32 forks source link

Retrieve Project Parameters using Python binding. #2058

Closed ben2k closed 1 year ago

ben2k commented 1 year ago

Allows to retrieve optimization parameters from xlsx project:

import shapeworks as sw p = sw.Project() p.load("sample.xlsx") optim_params = p.get_parameters("optimize").as_map()

Notes: the old Parameters:get_map() and set_map() were not usable (because tsl::ordered_map not supported by pybind11), replaced by as_map()

Added Variant.as_str() for access in Python.