Skip to content

Commit c003f58

Browse files
author
b4pm-devops
committed
merge post_integration to validation
2 parents bd8b3d1 + 17c099a commit c003f58

File tree

3 files changed

+27
-13
lines changed

3 files changed

+27
-13
lines changed

energy_models/core/energy_mix/energy_mix_disc.py

+10-6
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
'''
22
Copyright 2022 Airbus SAS
3-
Modifications on 2023/04/19-2025/01/17 Copyright 2025 Capgemini
3+
Modifications on 2023/04/19-2025/01/23 Copyright 2025 Capgemini
44
55
Licensed under the Apache License, Version 2.0 (the "License");
66
you may not use this file except in compliance with the License.
@@ -26,11 +26,6 @@
2626
from climateeconomics.core.core_witness.climateeco_discipline import (
2727
ClimateEcoDiscipline,
2828
)
29-
from climateeconomics.core.tools.colormaps import available_colormaps
30-
from climateeconomics.core.tools.plot_factories import create_sankey_with_slider
31-
from climateeconomics.core.tools.plotting import (
32-
InstantiatedPlotlyNativeChart,
33-
)
3429
from climateeconomics.sos_wrapping.sos_wrapping_agriculture.agriculture.agriculture_mix_disc import (
3530
AgricultureMixDiscipline,
3631
)
@@ -54,6 +49,15 @@
5449
from sostrades_optimization_plugins.tools.cst_manager.func_manager_common import (
5550
get_dsmooth_dvariable,
5651
)
52+
from sostrades_optimization_plugins.tools.plot_tools.colormaps import (
53+
available_colormaps,
54+
)
55+
from sostrades_optimization_plugins.tools.plot_tools.plot_factories import (
56+
create_sankey_with_slider,
57+
)
58+
from sostrades_optimization_plugins.tools.plot_tools.plotting import (
59+
InstantiatedPlotlyNativeChart,
60+
)
5761

5862
from energy_models.core.energy_mix.energy_mix import EnergyMix
5963
from energy_models.core.stream_type.carbon_models.carbon_capture import CarbonCapture

energy_models/core/stream_type/stream_disc.py

+16-6
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
'''
22
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
44
55
Licensed under the Apache License, Version 2.0 (the "License");
66
you may not use this file except in compliance with the License.
@@ -25,18 +25,24 @@
2525
from climateeconomics.core.core_witness.climateeco_discipline import (
2626
ClimateEcoDiscipline,
2727
)
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
3128
from sostrades_core.execution_engine.sos_wrapp import SoSWrapp
3229
from sostrades_core.tools.post_processing.charts.chart_filter import ChartFilter
3330
from sostrades_core.tools.post_processing.charts.two_axes_instanciated_chart import (
3431
InstanciatedSeries,
35-
TwoAxesInstanciatedChart,
3632
)
3733
from sostrades_core.tools.post_processing.pie_charts.instanciated_pie_chart import (
3834
InstanciatedPieChart,
3935
)
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+
)
4046

4147
from energy_models.glossaryenergy import GlossaryEnergy
4248

@@ -572,7 +578,11 @@ def get_post_processing_list(self, filters=None):
572578
instanciated_charts.append(chart)
573579

574580
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+
)
576586
new_chart.post_processing_section_name = "Detailed Stream Flow"
577587
instanciated_charts.append(new_chart)
578588

platform_version_required.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v5.0.0
1+
v5.0.1

0 commit comments

Comments
 (0)