nasa / OnAIR

The On-board Artificial Intelligence Research (OnAIR) Platform is a framework that enables AI algorithms written in Python to interact with NASA's cFS. It is intended to explore research concepts in autonomous operations in a simulated environment.
58 stars 14 forks source link

Updates to allow more robust naming and usage of plugins #119

Closed asgibson closed 6 months ago

asgibson commented 7 months ago

Plugins can now be named something other than the module name
This also allows re-use of the same plugin module in a single config file

The __init__.py file is required to exist in the directory for the plugin module
Backward compatibility with including __init__.py at end of module path is included

Module is now dynamically known by last dir in path (minus init file if included)
Unit tests updated to reflect changes

codecov-commenter commented 7 months ago

Codecov Report

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

Comparison is base (c2e1d42) 100.00% compared to head (16d382b) 100.00%.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #119 +/- ## ========================================= Coverage 100.00% 100.00% ========================================= Files 25 25 Lines 942 951 +9 Branches 131 133 +2 ========================================= + Hits 942 951 +9 ```

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