nasa / prog_models

The NASA Prognostic Model Package is a Python framework focused on defining and building models for prognostics (computation of remaining useful life) of engineering systems, and provides a set of prognostics models for select components developed within this framework, suitable for use in prognostics applications for these components.
123 stars 50 forks source link

updated import with numpy array to handle dictionaries with values th… #523

Open mstraut opened 1 year ago

mstraut commented 1 year ago

added "from numpy import array" for dictionaries that contain numpy arrays as values.

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:

github-actions[bot] commented 1 year ago
Benchmarking Results From: Test Time (s)
import main 0.12664140000000002
import thrown object 0.5045667
model initialization 0.11867319999999992
set noise 0.6465742999999999
simulate 0.2963146000000001
simulate with saving 0.9083089000000002
simulate with saving, dt 1.0312188999999998
simulate with printing results, dt 1.2533236000000008
Plot results 14.0633556
Metrics 0.03955500000000001
Surrogate Model Generation 3.187792299999998
surrogate sim 1.0002384999999983
surrogate sim, dt 2.8838846999999994
To: Test Time (s)
import main 0.12649310000000002
import thrown object 0.5026661000000001
model initialization 0.11567599999999989
set noise 0.6439137000000001
simulate 0.29685309999999987
simulate with saving 0.9149403999999999
simulate with saving, dt 1.0255864999999997
simulate with printing results, dt 1.2560729999999998
Plot results 14.1570844
Metrics 0.03970389999999924
Surrogate Model Generation 3.2682083000000013
surrogate sim 1.004453999999999
surrogate sim, dt 2.889538599999998
codecov-commenter commented 1 year ago

Codecov Report

Merging #523 (94af910) into dev (f89fb9b) will decrease coverage by 1.59%. The diff coverage is 100.00%.

@@            Coverage Diff             @@
##              dev     #523      +/-   ##
==========================================
- Coverage   80.77%   79.18%   -1.59%     
==========================================
  Files          53       30      -23     
  Lines        6074     2369    -3705     
==========================================
- Hits         4906     1876    -3030     
+ Misses       1168      493     -675     
Impacted Files Coverage Δ
src/prog_models/utils/containers.py 85.71% <100.00%> (+0.18%) :arrow_up:

... and 23 files with indirect coverage changes

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.