PedroSeber / ALChemE

ALChemE is a software to assist users in calculations related to the chemical engineering field and process design. Currently, the software can assist users with the analysis of heat exchange networks (HENs) and water recycle networks (WReNs).
MIT License
5 stars 0 forks source link

Add some functionality to save/load functions #6

Closed Argon1999 closed 3 years ago

Argon1999 commented 3 years ago

1) Make save add an extension to the filename only if no extension was passed in the first place (perhaps via if '.' in filename:) 2) Add an overwrite = False parameter to the save function, and make it return an error if the user tries to save a file that already exists 3) For the load function, set the default filename to None, and let the software find all .p files in the directory. If there's only one, then load it. Else, return an error.