Database.to_txt(
path=None,
flows=True,
coefficients=False,
scenario='baseline',
_format='txt',
include_meta=False,
sep=',',
flat=False,
separate_files=False,
)#

Export one scenario as multiple text or CSV files.

Parameters:
  • path – Output path or directory.

  • flows – When True, include flow matrices.

  • coefficients – When True, include coefficient matrices.

  • scenario – Scenario to export.

  • _format – File format label accepted by the text exporter, typically "txt" or "csv".

  • include_meta – When True, export metadata together with matrices.

  • sep – Column separator used by delimited exports.

  • flat – False keeps the historical matrix-per-file layout. True writes one long-format data file plus a units file.

  • separate_files – when flat=True, also write one trimmed long-format file per matrix in the same export directory.

Returns:

Export files are written to disk.

Return type:

None