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
55 stars 8 forks source link

Add default value for piecewise loading #82

Closed teubert closed 1 year ago

teubert commented 1 year ago

Add the ability to send a loading profile that is one longer than the times. The last value is treated as the "default value"- the load that will be applied once the end of the profile is met.

Also added some input validation and associated tests

github-actions[bot] commented 1 year ago

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

codecov-commenter commented 1 year ago

Codecov Report

Merging #82 (7ccf86b) into dev (a421b92) will decrease coverage by 0.04%. The diff coverage is 54.54%.

@@            Coverage Diff             @@
##              dev      #82      +/-   ##
==========================================
- Coverage   84.26%   84.23%   -0.04%     
==========================================
  Files          99       99              
  Lines       10167    10178      +11     
==========================================
+ Hits         8567     8573       +6     
- Misses       1600     1605       +5     
Files Changed Coverage Δ
src/progpy/loading/piecewise.py 72.22% <54.54%> (-27.78%) :arrow_down: