|
579 | 579 | "source": [ |
580 | 580 | "## Read/write and measure sets to/from an Excel file\n", |
581 | 581 | "\n", |
582 | | - "Measures defined in an excel file following the template provided in sheet `measures` of `climada_python/data/system/entity_template.xlsx` can be ingested directly using the method `from_excel()`. Measure sets can be written to file with the method `write_excel()`" |
| 582 | + "Measures defined in an excel file following the template provided in sheet `measures` of `climada_python/data/system/entity_template.xlsx` can be read directly using the method `from_excel()`. Measure sets can be written to file with the method `write_excel()`" |
583 | 583 | ] |
584 | 584 | }, |
585 | 585 | { |
586 | 586 | "cell_type": "code", |
587 | | - "execution_count": 8, |
| 587 | + "execution_count": 3, |
588 | 588 | "metadata": { |
589 | 589 | "ExecuteTime": { |
590 | 590 | "end_time": "2021-03-05T12:22:41.336852Z", |
591 | 591 | "start_time": "2021-03-05T12:22:41.266438Z" |
592 | 592 | }, |
593 | 593 | "execution": { |
594 | | - "iopub.execute_input": "2025-04-07T09:45:16.945515Z", |
595 | | - "iopub.status.busy": "2025-04-07T09:45:16.944353Z", |
596 | | - "iopub.status.idle": "2025-04-07T09:45:19.030607Z", |
597 | | - "shell.execute_reply": "2025-04-07T09:45:19.030311Z", |
598 | | - "shell.execute_reply.started": "2025-04-07T09:45:16.945458Z" |
| 594 | + "iopub.execute_input": "2025-04-08T12:57:24.768483Z", |
| 595 | + "iopub.status.busy": "2025-04-08T12:57:24.767957Z", |
| 596 | + "iopub.status.idle": "2025-04-08T12:57:24.811583Z", |
| 597 | + "shell.execute_reply": "2025-04-08T12:57:24.810879Z", |
| 598 | + "shell.execute_reply.started": "2025-04-08T12:57:24.768441Z" |
599 | 599 | } |
600 | 600 | }, |
601 | | - "outputs": [ |
602 | | - { |
603 | | - "data": { |
604 | | - "text/plain": [ |
605 | | - "<climada.entity.measures.measure_set.MeasureSet at 0x1bb96f490>" |
606 | | - ] |
607 | | - }, |
608 | | - "execution_count": 8, |
609 | | - "metadata": {}, |
610 | | - "output_type": "execute_result" |
611 | | - } |
612 | | - ], |
| 601 | + "outputs": [], |
613 | 602 | "source": [ |
614 | 603 | "from climada.entity.measures import MeasureSet\n", |
615 | | - "from climada.util import ENT_TEMPLATE_XLS\n", |
| 604 | + "from climada.util import ENT_TEMPLATE_XLS # import path of template file\n", |
616 | 605 | "\n", |
617 | 606 | "# Fill DataFrame from Excel file\n", |
618 | 607 | "file_name = ENT_TEMPLATE_XLS # provide absolute path of the excel file\n", |
619 | | - "meas_set = MeasureSet.from_excel(file_name)\n", |
620 | | - "meas_set" |
| 608 | + "meas_set = MeasureSet.from_excel(file_name)" |
621 | 609 | ] |
622 | 610 | } |
623 | 611 | ], |
|
0 commit comments