Skip to content

Commit

Permalink
Merge branch 'develop' into integration
Browse files Browse the repository at this point in the history
  • Loading branch information
simaosr committed Nov 26, 2024
2 parents 5f8c05b + e701dc5 commit 34efe4c
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 19 deletions.
13 changes: 7 additions & 6 deletions data_energy/fitting/gaseous_bioenergy.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,21 +14,22 @@
limitations under the License.
'''
import os
import pickle
from copy import deepcopy

import numpy as np
import pandas as pd
import pickle
from climateeconomics.glossarycore import GlossaryCore
from scipy.interpolate import interp1d
from scipy.optimize import minimize
from sostrades_core.execution_engine.execution_engine import ExecutionEngine
from sostrades_core.tools.bspline.bspline import BSpline
from sostrades_core.tools.post_processing.charts.two_axes_instanciated_chart import (
InstanciatedSeries,
TwoAxesInstanciatedChart,
InstanciatedSeries,
TwoAxesInstanciatedChart,
)
from sostrades_core.tools.bspline.bspline import BSpline

from energy_models.glossaryenergy import GlossaryEnergy
from climateeconomics.glossarycore import GlossaryCore
from copy import deepcopy

"""
This script is used to calibrate the gaseous bioenergy invest so that the energy production matches the IEA NZE scenario
Expand Down
8 changes: 4 additions & 4 deletions data_energy/fitting/hydropower.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,19 +14,19 @@
limitations under the License.
'''
import os
import pickle
from copy import deepcopy

import numpy as np
import pandas as pd
import pickle
from copy import deepcopy
from climateeconomics.glossarycore import GlossaryCore
from scipy.interpolate import interp1d
from scipy.optimize import minimize
from sostrades_core.execution_engine.execution_engine import ExecutionEngine
from sostrades_core.tools.bspline.bspline import BSpline
from sostrades_core.tools.post_processing.charts.two_axes_instanciated_chart import (
InstanciatedSeries,
TwoAxesInstanciatedChart,
InstanciatedSeries,
TwoAxesInstanciatedChart,
)

from energy_models.glossaryenergy import GlossaryEnergy
Expand Down
16 changes: 7 additions & 9 deletions data_energy/fitting/windpower.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,28 +14,26 @@
limitations under the License.
'''
import os
from functools import reduce
import pickle
from copy import deepcopy
from functools import reduce

import numpy as np
import pandas as pd
from copy import deepcopy
from climateeconomics.glossarycore import GlossaryCore
from scipy.interpolate import interp1d
from scipy.optimize import minimize
from sostrades_core.execution_engine.execution_engine import ExecutionEngine
from sostrades_core.tools.bspline.bspline import BSpline
from sostrades_core.tools.post_processing.charts.two_axes_instanciated_chart import (
InstanciatedSeries,
TwoAxesInstanciatedChart,
)
from sostrades_core.tools.bspline.bspline import BSpline

from energy_models.glossaryenergy import GlossaryEnergy
from energy_models.models.electricity.wind_onshore.wind_onshore_disc import (
WindOnshoreDiscipline,
)
from energy_models.models.electricity.wind_offshore.wind_offshore_disc import (
WindOffshoreDiscipline,
)
from energy_models.glossaryenergy import GlossaryEnergy


"""
This script is used to calibrate the windpower invest so that the electricity production matches the IEA NZE scenario
Expand Down Expand Up @@ -69,7 +67,7 @@
invest_year_start = 80. #G$
construction_delay = GlossaryEnergy.TechnoConstructionDelayDict['WindOffshore'] # same construction delay for windonshore and windoffshore
if construction_delay != GlossaryEnergy.TechnoConstructionDelayDict['WindOnshore']:
raise ValueError(f"must adapt script as construction delay for windOnshore and windOffshore differ")
raise ValueError("must adapt script as construction delay for windOnshore and windOffshore differ")

name = 'usecase_witness_optim_nze_eval'
model_name_onshore = f"WITNESS_MDO.WITNESS_Eval.WITNESS.EnergyMix.electricity.{GlossaryEnergy.WindOnshore}"
Expand Down

0 comments on commit 34efe4c

Please sign in to comment.