fetch_custom_curves
fetch_custom_curves
Service for fetch custom curves operations.
Classes
DownloadCustomCurveRunner
Bases: BaseRunner[StringIO]
Runner for downloading a specific custom curve as CSV data. GET /api/v3/scenarios/{scenario_id}/custom_curves/{curve_name}.csv
Functions
run
staticmethod
Execute the custom curve download operation.
Returns:
| Type | Description |
|---|---|
ServiceResult[Any]
|
ServiceResult[io.StringIO]: Success case contains StringIO with CSV data; failure case contains error messages. |
Source code in src/pyetm/services/scenario_runners/fetch_custom_curves.py
FetchAllCustomCurveDataRunner
Bases: BaseRunner[Dict[str, Any]]
Runner for fetching metadata for all custom curves on a scenario. GET /api/v3/scenarios/{scenario_id}/custom_curves
Functions
run
staticmethod
Execute the fetch all custom curves metadata operation.
Returns:
| Type | Description |
|---|---|
ServiceResult[Dict[str, Any]]
|
ServiceResult[Dict[str, Any]]: Success case contains dict with curve metadata; failure case contains error messages. |