NREL / infrasys

Data store for components and time series in support of Python-based modeling packages
https://nrel.github.io/infrasys/
BSD 3-Clause "New" or "Revised" License
5 stars 2 forks source link

Allow no components in add_components #47

Closed daniel-thom closed 1 month ago

daniel-thom commented 1 month ago

The old behavior was causing a problem for user code that passed a dynamically-built list of components to system.add_components. Requiring that code to check for an empty list was onerous, and we can safely let it go through with no error.

codecov-commenter commented 1 month ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 95.43%. Comparing base (ae517df) to head (b868218).

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #47 +/- ## ========================================== - Coverage 95.43% 95.43% -0.01% ========================================== Files 33 33 Lines 2741 2739 -2 ========================================== - Hits 2616 2614 -2 Misses 125 125 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.