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

Make DataFile compatible with `pathlib` #520

Closed florentLutz closed 1 month ago

florentLutz commented 2 months ago

Is your feature request related to a problem? Please describe. As of right now, it is not possible to use a path obtained with pathlib to create a DataFile, which makes using a FASTOADProblem as well. This comes from the fact that DataFile checks type of the path to be used and only supports str, IO or list. Paths coming from pathlib, however have their own specific type

Describe the solution you'd like Either add an if to allow pathlib paths or transition from os to pathlib alltogether

Describe alternatives you've considered Keep using os 😅