|
1 | 1 | '''
|
2 | 2 | Copyright 2022 Airbus SAS
|
3 |
| -Modifications on 2023/03/27-2025/01/17 Copyright 2025 Capgemini |
| 3 | +Modifications on 2023/03/27-2025/01/23 Copyright 2025 Capgemini |
4 | 4 |
|
5 | 5 | Licensed under the Apache License, Version 2.0 (the "License");
|
6 | 6 | you may not use this file except in compliance with the License.
|
|
25 | 25 | from climateeconomics.core.core_witness.climateeco_discipline import (
|
26 | 26 | ClimateEcoDiscipline,
|
27 | 27 | )
|
28 |
| -from climateeconomics.core.tools.colormaps import available_colormaps |
29 |
| -from climateeconomics.core.tools.plot_factories import create_sankey_with_slider |
30 |
| -from climateeconomics.core.tools.plotting import InstantiatedPlotlyNativeChart |
31 | 28 | from sostrades_core.execution_engine.sos_wrapp import SoSWrapp
|
32 | 29 | from sostrades_core.tools.post_processing.charts.chart_filter import ChartFilter
|
33 | 30 | from sostrades_core.tools.post_processing.charts.two_axes_instanciated_chart import (
|
34 | 31 | InstanciatedSeries,
|
35 |
| - TwoAxesInstanciatedChart, |
36 | 32 | )
|
37 | 33 | from sostrades_core.tools.post_processing.pie_charts.instanciated_pie_chart import (
|
38 | 34 | InstanciatedPieChart,
|
39 | 35 | )
|
| 36 | +from sostrades_optimization_plugins.tools.plot_tools.colormaps import ( |
| 37 | + available_colormaps, |
| 38 | +) |
| 39 | +from sostrades_optimization_plugins.tools.plot_tools.plot_factories import ( |
| 40 | + create_sankey_with_slider, |
| 41 | +) |
| 42 | +from sostrades_optimization_plugins.tools.plot_tools.plotting import ( |
| 43 | + InstantiatedPlotlyNativeChart, |
| 44 | + TwoAxesInstanciatedChart, |
| 45 | +) |
40 | 46 |
|
41 | 47 | from energy_models.glossaryenergy import GlossaryEnergy
|
42 | 48 |
|
@@ -572,7 +578,11 @@ def get_post_processing_list(self, filters=None):
|
572 | 578 | instanciated_charts.append(chart)
|
573 | 579 |
|
574 | 580 | if "Stream Flow" in charts or True:
|
575 |
| - new_chart = self.get_chart_sankey_fluxes(years_list, chart_name="Flow of energy streams (TWh)", split_external=True) |
| 581 | + new_chart = self.get_chart_sankey_fluxes( |
| 582 | + years_list, |
| 583 | + chart_name=f"Flow of energy streams for {self.sos_name.split('.')[-1]} production (TWh)", |
| 584 | + split_external=True, |
| 585 | + ) |
576 | 586 | new_chart.post_processing_section_name = "Detailed Stream Flow"
|
577 | 587 | instanciated_charts.append(new_chart)
|
578 | 588 |
|
|
0 commit comments