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
65 stars 9 forks source link

Direct Parameters #145

Closed teubert closed 4 months ago

teubert commented 4 months 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 4 months ago

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