Upload API Parametric filters
APIUploadParametric
Bases: APIUploadInternal
Exposes functions for uploading parametric filters to the server.
Source code in src/rmlab/api/upload/parametric/filters.py
6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 |
|
upload_parametric_filters(scen_id, filters)
async
Upload a set of parametric filters defined in a file.
{"json": "example"}
Parameters:
Name | Type | Description | Default |
---|---|---|---|
scen_id | int | Scenario ID | required |
filters | Union[str, list] | Parametric filters as file (csv or json) or as json list | required |
Raises:
Type | Description |
---|---|
ValueError | If file extension is invalid |
FileNotFoundError | If file does not exist |
Source code in src/rmlab/api/upload/parametric/filters.py
9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 |
|