nasa / progpy

The NASA Prognostic Python Packages is a Python framework focused on defining and building models and algorit for prognostics (computation of remaining useful life) of engineering systems, and provides a set of models and algorithms for select components developed within this framework, suitable for use in prognostic applications.
https://nasa.github.io/progpy/
Other
52 stars 7 forks source link

Direct Parameters #145

Closed teubert closed 1 month ago

teubert commented 1 month ago

Add support to set parameters directly using square brackets in the model so that

m.parameters['abc'] = 1

becomes

m['abc'] = 1

Also updated the examples to take advantage of this feature.

.parameters syntax will still work as expected (and be slightly faster), but this provides a cleaner syntax for parameters.

github-actions[bot] commented 1 month ago

Thank you for opening this PR. Each PR into dev requires a code review. For the code review, look at the following: