fast-aircraft-design / FAST-OAD

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

Enabling pathlib.Path inputs for DataFile objects #522

Closed christophe-david closed 1 month ago

christophe-david commented 2 months ago

Fixes #520 by making the DataFile class able to use pathlib.Path instances as input.

Also added some refactoring that CodeClimate was demanding.

codecov[bot] commented 2 months ago

Codecov Report

Attention: Patch coverage is 90.10989% with 9 lines in your changes are missing coverage. Please review.

Project coverage is 84.54%. Comparing base (8b2b7a7) to head (a6bfe76).

Files Patch % Lines
src/fastoad/io/variable_io.py 86.84% 2 Missing and 3 partials :warning:
src/fastoad/io/xml/variable_io_base.py 90.47% 1 Missing and 3 partials :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #522 +/- ## ========================================== + Coverage 84.51% 84.54% +0.03% ========================================== Files 138 138 Lines 6277 6304 +27 Branches 907 909 +2 ========================================== + Hits 5305 5330 +25 + Misses 819 818 -1 - Partials 153 156 +3 ```

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