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

File path option consistency check #514

Open florentLutz opened 3 months ago

florentLutz commented 3 months ago

Is your feature request related to a problem? Please describe. It sometimes happen, mostly because of innattention, that when setting the option for a path to a file, I either forget the file exte,sion or put the path to a directory, which can cause problem in the code execution when for instance using pandas read_csv

Describe the solution you'd like When building the FAST-OAD problem from the configuration, couldn't a check be done for every option name that ends in file to make sure that we indeed receive a path to a file and not a folder

Describe alternatives you've considered Not making inattention mistakes 😅