fast-aircraft-design / FAST-OAD

FAST-OAD: An open source framework for rapid Overall Aircraft Design
GNU General Public License v3.0
53 stars 26 forks source link

Sub models #379

Closed christophe-david closed 3 years ago

christophe-david commented 3 years ago

This PR implements the idea in #255, that is to provide a way of replacing only a part of a FAST-OAD module.

Usage is described here.

I aimed at having the RegisterSubModel class sharing the same base as the existing RegisterOpenMDAOSystem and RegisterPropulsion classes, so all these classes have been reworked somehow.

Also, this PR has been the occasion to update some Sphinx settings.

codecov[bot] commented 3 years ago

Codecov Report

Merging #379 (f634bda) into master (6ccd0ae) will increase coverage by 0.07%. The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #379      +/-   ##
==========================================
+ Coverage   91.44%   91.52%   +0.07%     
==========================================
  Files         192      192              
  Lines        7761     7831      +70     
  Branches      734      740       +6     
==========================================
+ Hits         7097     7167      +70     
  Misses        523      523              
  Partials      141      141              
Impacted Files Coverage Δ
src/fastoad/api.py 0.00% <ø> (ø)
src/fastoad/io/configuration/configuration.py 92.19% <100.00%> (+0.33%) :arrow_up:
src/fastoad/module_management/exceptions.py 100.00% <100.00%> (ø)
src/fastoad/module_management/service_registry.py 100.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 6ccd0ae...f634bda. Read the comment docs.