rl-institut / oemoflex

A flexible model structure for creating and analysing multi-regional sector-integrated energy systems with oemof featuring many flexibility options.
https://oemoflex.readthedocs.io
GNU Affero General Public License v3.0
4 stars 1 forks source link

Raise warning when saving DataFramePackage would overwrite existing data #38

Closed jnnr closed 3 years ago

jnnr commented 3 years ago

This PR adds a warning to the method DataFramePackage.to_csv that is raised when the target directory is not empty. To write to the directory anyway, the user can explicitly pass overwrite=True.