excel_exporter
excel_exporter
Excel export functionality for scenario data.
Classes
PathManager
Handles file path operations for Excel export.
Functions
ensure_directory_exists
staticmethod
Create parent directory if it doesn't exist.
Source code in src/pyetm/exporters/excel_exporter.py
get_hourly_curves_path
staticmethod
Get path for hourly curves workbook.
get_annual_exports_path
staticmethod
MainSheetWriter
Writes main scenario info sheet to Excel.
Functions
write
staticmethod
Write main scenario information sheet.
Source code in src/pyetm/exporters/excel_exporter.py
DataSheetWriter
Writes data sheets (inputs, sortables, etc.) to Excel.
Functions
write_inputs
staticmethod
Write inputs sheet.
Source code in src/pyetm/exporters/excel_exporter.py
write_inputs_detailed
staticmethod
Write detailed inputs sheet with defaults and min/max.
Source code in src/pyetm/exporters/excel_exporter.py
write_sortables
staticmethod
Write sortables sheet.
Source code in src/pyetm/exporters/excel_exporter.py
write_custom_curves
staticmethod
Write custom curves sheet.
Source code in src/pyetm/exporters/excel_exporter.py
write_gquery_results
staticmethod
Write gquery results sheet.
Source code in src/pyetm/exporters/excel_exporter.py
write_users
staticmethod
Write users sheet.
HourlyCurvesWriter
Writes hourly curves to separate Excel file.
Functions
write
staticmethod
Write hourly curves to Excel, organized by carrier.
Source code in src/pyetm/exporters/excel_exporter.py
AnnualExportsWriter
Writes annual exports to separate Excel file.
Functions
write
staticmethod
Write annual exports to Excel file with validation.
Source code in src/pyetm/exporters/excel_exporter.py
ExcelExporter
Handles Excel export for scenario data.
Functions
write
staticmethod
Write export data collection to Excel format.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
export_data
|
ExportDataCollection
|
The collected export data in generic format |
required |
path
|
str
|
Output file path for the main Excel file |
required |
scenarios
|
list[Any]
|
List of scenario objects for proper formatting |
required |
Returns:
| Type | Description |
|---|---|
Path
|
Path to the created main Excel file |