write#
- ams.io.xlsx.write(system, outfile, skip_empty=True, overwrite=None, add_book=None, to_andes=False)[source]#
Write loaded AMS system data into an xlsx file
Revised function
andes.io.xlsx.write
to skip non-andes models.- Parameters:
- systemSystem
A loaded system with parameters
- outfilestr
Path to the output file
- skip_emptybool
Skip output of empty models (n = 0)
- overwritebool, optional
None to prompt for overwrite selection; True to overwrite; False to not overwrite
- add_bookstr, optional
An optional model to be added to the output spreadsheet
- to_andesbool, optional
Write to an ANDES system, where non-ANDES models are skipped
- Returns:
- bool
True if file written; False otherwise